Skip to content
Snippets Groups Projects
Commit 9edaf4df authored by Adrien Béraud's avatar Adrien Béraud Committed by Adrien Béraud
Browse files

logs: make syslog disabled by default

Change-Id: If05e5c35a739b7149b66622c249c303996ba8550
parent 54cda5a9
No related branches found
No related tags found
Loading
......@@ -35,6 +35,7 @@ namespace libjami {
enum InitFlag {
LIBJAMI_FLAG_DEBUG = 1 << 0,
LIBJAMI_FLAG_CONSOLE_LOG = 1 << 1,
LIBJAMI_FLAG_SYSLOG = 1 << 3,
LIBJAMI_FLAG_AUTOANSWER = 1 << 2,
LIBJAMI_FLAG_IOS_EXTENSION = 1 << 4,
LIBJAMI_FLAG_NO_LOCAL_AUDIO = 1 << 6,
......
......@@ -45,8 +45,7 @@ init(enum InitFlag flags) noexcept
{
initFlags = flags;
jami::Logger::setDebugMode(LIBJAMI_FLAG_DEBUG == (flags & LIBJAMI_FLAG_DEBUG));
jami::Logger::setSysLog(true);
jami::Logger::setSysLog(LIBJAMI_FLAG_SYSLOG == (flags & LIBJAMI_FLAG_SYSLOG));
jami::Logger::setConsoleLog(LIBJAMI_FLAG_CONSOLE_LOG == (flags & LIBJAMI_FLAG_CONSOLE_LOG));
const char* log_file = getenv("JAMI_LOG_FILE");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment