From bb33710e45c6e3b4f6594b8c35c79e17c6e5466a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 22 Feb 2009 16:00:00 +0000 Subject: remove useless log priorities CRIT,EMERG,ALERT --- src/anytun-controld.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/anytun-controld.cpp') diff --git a/src/anytun-controld.cpp b/src/anytun-controld.cpp index f316099..30948c0 100644 --- a/src/anytun-controld.cpp +++ b/src/anytun-controld.cpp @@ -85,7 +85,7 @@ void syncListener() catch (std::exception& e) { std::string addr = gOpt.getBindToAddr() == "" ? "*" : gOpt.getBindToAddr(); - cLog.msg(Log::PRIO_ERR) << "cannot bind to " << addr << ":" << gOpt.getBindToPort() + cLog.msg(Log::PRIO_ERROR) << "cannot bind to " << addr << ":" << gOpt.getBindToPort() << " (" << e.what() << ") exiting.." << std::endl; //return false; } @@ -106,7 +106,7 @@ int main(int argc, char* argv[]) } StringList targets = gOpt.getLogTargets(); if(targets.empty()) { - cLog.addTarget("syslog:5,anytun-controld,daemon"); + cLog.addTarget("syslog:3,anytun-controld,daemon"); } else { StringList::const_iterator it; @@ -171,14 +171,14 @@ int main(int argc, char* argv[]) catch(std::runtime_error& e) { if(daemonized) - cLog.msg(Log::PRIO_ERR) << "uncaught runtime error, exiting: " << e.what(); + cLog.msg(Log::PRIO_ERROR) << "uncaught runtime error, exiting: " << e.what(); else std::cout << "uncaught runtime error, exiting: " << e.what() << std::endl; } catch(std::exception& e) { if(daemonized) - cLog.msg(Log::PRIO_ERR) << "uncaught exception, exiting: " << e.what(); + cLog.msg(Log::PRIO_ERROR) << "uncaught exception, exiting: " << e.what(); else std::cout << "uncaught exception, exiting: " << e.what() << std::endl; } -- cgit v1.2.3