From e6c44871c8e4740cecbbdd66c70008c638c21a47 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 27 Dec 2011 17:14:29 +0900 Subject: [PATCH] Fixed the bug that log file is not created if there is warning before log open Use LogFactory::reconfigure() to reopen log file after setting log filename from option. --- src/main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cc b/src/main.cc index 2c6fcd24..8ab4224c 100644 --- a/src/main.cc +++ b/src/main.cc @@ -192,6 +192,7 @@ error_code::Value main(int argc, char* argv[]) if(op->getAsBool(PREF_QUIET)) { LogFactory::setConsoleOutput(false); } + LogFactory::reconfigure(); error_code::Value exitStatus = error_code::FINISHED; A2_LOG_INFO("<<--- --- --- ---"); A2_LOG_INFO(" --- --- --- ---");