diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-11-23 22:01:34 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-11-23 22:01:34 +0000 |
commit | 1f3fbc654f3fa7c700834cc3b94bc931ad721261 (patch) | |
tree | 1adb33dbc9b5d5d7f36c9e7f3ee04fda5122e178 | |
parent | 3621d57a95b858236921d8a9a22fb7568e451dc7 (diff) |
Fix exception in bbackupd when no LogFile is configured.
-rw-r--r-- | lib/server/Daemon.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/server/Daemon.h b/lib/server/Daemon.h index d95ac0c8..b5384918 100644 --- a/lib/server/Daemon.h +++ b/lib/server/Daemon.h @@ -87,9 +87,12 @@ protected: virtual int ProcessOption(signed int option); void ResetLogFile() { - mapLogFileLogger.reset( - new FileLogger(mLogFile, mLogFileLevel, - !mLogLevel.mTruncateLogFile)); + if(mapLogFileLogger.get()) + { + mapLogFileLogger.reset( + new FileLogger(mLogFile, mLogFileLevel, + !mLogLevel.mTruncateLogFile)); + } } private: |