more logging

This commit is contained in:
WarmUpTill
2020-10-10 01:50:10 +02:00
parent 62d54f7206
commit ece2d61e0a
2 changed files with 6 additions and 6 deletions

View File

@@ -23,11 +23,11 @@ bool resolveCurl()
(cleanupFunction)loaded_curl_lib->resolve("curl_easy_cleanup");
if (f_curl_init && f_curl_setopt && f_curl_perform && f_curl_cleanup) {
blog(LOG_INFO, "curl loaded successfully");
blog(LOG_INFO, "[adv-ss] curl loaded successfully");
return true;
}
blog(LOG_INFO, "curl symbols not resolved");
blog(LOG_INFO, "[adv-ss] curl symbols not resolved");
return false;
}
@@ -43,13 +43,13 @@ bool loadCurl()
#endif
for (QString path : locations) {
blog(LOG_INFO, "trying '%s'", path.toUtf8().constData());
blog(LOG_INFO, "[adv-ss] trying '%s'", path.toUtf8().constData());
QFileInfo libPath(
QDir(path).absoluteFilePath(curl_library_name));
if (libPath.exists() && libPath.isFile()) {
QString libFilePath = libPath.absoluteFilePath();
blog(LOG_INFO, "found curl library at '%s'",
blog(LOG_INFO, "[adv-ss] found curl library at '%s'",
libFilePath.toUtf8().constData());
loaded_curl_lib = new QLibrary(libFilePath, nullptr);
@@ -62,6 +62,6 @@ bool loadCurl()
}
}
blog(LOG_ERROR, "can't find the curl library");
blog(LOG_WARNING, "[adv-ss] can't find the curl library");
return false;
}

View File

@@ -24,7 +24,7 @@ struct SceneSwitcherEntry {
const char *sceneName = obs_source_get_name(s);
obs_source_release(s);
blog(LOG_INFO,
"Advanced Scene Switcher match for '%s' - switch to scene '%s'",
"[adv-ss] match for '%s' - switch to scene '%s'",
getType(), sceneName);
}