Logger: speedup the sync discovery when the log is innactive
authorOlivier Goffart <ogoffart@woboq.com>
Wed, 21 Oct 2015 22:20:13 +0000 (00:20 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Wed, 21 Oct 2015 22:22:25 +0000 (00:22 +0200)
commitf6a543ada3288eada9178d618235195027db91b7
tree44812feef68066288242fd793f45ff02c6eb69e4
parentc7bf09c3d47323026a96bc83cedde8f34e9e8acf
Logger: speedup the sync discovery when the log is innactive

The sync throw a lot of log message, and QDateTime::fromCurrentTime is
quite expensive. So don't call it if it's not needed.
src/libsync/logger.cpp