projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't log to stdout if --syslog and/or --logfile are specified
[quassel.git]
/
src
/
common
/
logger.cpp
diff --git
a/src/common/logger.cpp
b/src/common/logger.cpp
index
d9708f7
..
78a3610
100644
(file)
--- a/
src/common/logger.cpp
+++ b/
src/common/logger.cpp
@@
-76,6
+76,9
@@
void Logger::log() {
}
syslog(LOG_USER & prio, "%s", qPrintable(_buffer));
}
}
syslog(LOG_USER & prio, "%s", qPrintable(_buffer));
}
+ // don't log to stdout if --syslog was specified (but neither ignore --logfile)
+ if(!Quassel::logFile())
+ return;
#endif
_buffer.prepend(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss "));
#endif
_buffer.prepend(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss "));