diff --git a/ext/ayon-cpp-dev-tools b/ext/ayon-cpp-dev-tools index 9f647c0..8bd8e5e 160000 --- a/ext/ayon-cpp-dev-tools +++ b/ext/ayon-cpp-dev-tools @@ -1 +1 @@ -Subproject commit 9f647c0eaef710d6e5f8564f65a6091d19acc791 +Subproject commit 8bd8e5eeae6631f66785a18720907f6044b84dfb diff --git a/src/AyonCppApi/AyonCppApi.cpp b/src/AyonCppApi/AyonCppApi.cpp index d2284a5..c39d33f 100644 --- a/src/AyonCppApi/AyonCppApi.cpp +++ b/src/AyonCppApi/AyonCppApi.cpp @@ -109,7 +109,7 @@ AyonApi::AyonApi(const std::optional &logFilePos, // ----------- Resolve Log Path std::filesystem::path logPath; - if (logFilePos.has_value()) { + if (logFilePos && !logFilePos->empty()) { try { std::filesystem::path inPath(logFilePos.value()); std::cout << "Input log path: " << inPath << std::endl; @@ -149,7 +149,7 @@ AyonApi::AyonApi(const std::optional &logFilePos, m_log = std::shared_ptr(&loggerRef, [](AyonLogger*){}); m_log->registerLoggingKey("AyonApi"); - m_log->setLogLevelInfo(); + m_log->setLogLevelFromEnv(); m_log->info(m_log->key("AyonApi"), "Init AyonServer httplib::Client"); m_ayonServer = std::make_unique(m_serverUrl);