mirror of https://github.com/aria2/aria2
2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Code clean up. * src/main.ccpull/1/head
parent
558541ec48
commit
2b62660e49
|
@ -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>
|
2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Reset GID to 1 when they reach maximum value. Rewritten
|
Reset GID to 1 when they reach maximum value. Rewritten
|
||||||
|
|
|
@ -178,10 +178,10 @@ downloadresultcode::RESULT main(int argc, char* argv[])
|
||||||
#endif // ENABLE_BITTORRENT
|
#endif // ENABLE_BITTORRENT
|
||||||
if(op->get(PREF_LOG) == "-") {
|
if(op->get(PREF_LOG) == "-") {
|
||||||
LogFactory::setLogFile(DEV_STDOUT);
|
LogFactory::setLogFile(DEV_STDOUT);
|
||||||
} else if(!op->get(PREF_LOG).empty()) {
|
} else if(op->blank(PREF_LOG)) {
|
||||||
LogFactory::setLogFile(op->get(PREF_LOG));
|
|
||||||
} else {
|
|
||||||
LogFactory::setLogFile(DEV_NULL);
|
LogFactory::setLogFile(DEV_NULL);
|
||||||
|
} else {
|
||||||
|
LogFactory::setLogFile(op->get(PREF_LOG));
|
||||||
}
|
}
|
||||||
LogFactory::setLogLevel(op->get(PREF_LOG_LEVEL));
|
LogFactory::setLogLevel(op->get(PREF_LOG_LEVEL));
|
||||||
if(op->getAsBool(PREF_QUIET)) {
|
if(op->getAsBool(PREF_QUIET)) {
|
||||||
|
|
Loading…
Reference in New Issue