mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 05:01:51 -04:00
libobs, UI: Do not log redundant warnings
Reduces log file clutter by not logging certain warning messages that were already safe/normal/expected failures.
This commit is contained in:
1 parent
455187e6e4
commit
8f106dc3c1
3 files changed
+8
-2
No files matched your search
@@ -242,7 +242,7 @@ try {
|
||||
return true;
|
||||
|
||||
} catch (string text) {
|
||||
blog(LOG_WARNING, "%s: %s", __FUNCTION__, text.c_str());
|
||||
blog(LOG_DEBUG, "%s: %s", __FUNCTION__, text.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ extern const char *get_module_extension(void);
|
||||
|
||||
static inline int req_func_not_found(const char *name, const char *path)
|
||||
{
|
||||
blog(LOG_ERROR, "Required module function '%s' in module '%s' not "
|
||||
blog(LOG_DEBUG, "Required module function '%s' in module '%s' not "
|
||||
"found, loading of module failed",
|
||||
name, path);
|
||||
return MODULE_MISSING_EXPORTS;
|
||||
|
||||
@@ -92,6 +92,12 @@ void *os_dlopen(const char *path)
|
||||
|
||||
if (!h_library) {
|
||||
DWORD error = GetLastError();
|
||||
|
||||
/* don't print error for libraries that aren't meant to be
|
||||
* dynamically linked */
|
||||
if (error == ERROR_PROC_NOT_FOUND)
|
||||
return NULL;
|
||||
|
||||
char *message = NULL;
|
||||
|
||||
FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM |
|
||||
|
||||
Reference in new issue
Block a user