2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Code clean up.
	* src/main.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-01-10 07:57:39 +00:00
parent 558541ec48
commit 2b62660e49
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Code clean up.
* src/main.cc
2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Reset GID to 1 when they reach maximum value. Rewritten

View File

@ -178,10 +178,10 @@ downloadresultcode::RESULT main(int argc, char* argv[])
#endif // ENABLE_BITTORRENT
if(op->get(PREF_LOG) == "-") {
LogFactory::setLogFile(DEV_STDOUT);
} else if(!op->get(PREF_LOG).empty()) {
LogFactory::setLogFile(op->get(PREF_LOG));
} else {
} else if(op->blank(PREF_LOG)) {
LogFactory::setLogFile(DEV_NULL);
} else {
LogFactory::setLogFile(op->get(PREF_LOG));
}
LogFactory::setLogLevel(op->get(PREF_LOG_LEVEL));
if(op->getAsBool(PREF_QUIET)) {