diff options
Diffstat (limited to 'src/cprlisten.cc')
-rw-r--r-- | src/cprlisten.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cprlisten.cc b/src/cprlisten.cc index 62deede..0a4958e 100644 --- a/src/cprlisten.cc +++ b/src/cprlisten.cc @@ -55,13 +55,13 @@ void CPRListen::stop() socket.connect("localhost", port); socket.send_string(MAGIC_STOP_STRING); } catch(Network_error &e) { - info.error("In stop(): %s.", e.error.c_str()); + info->error("In stop(): %s.", e.error.c_str()); } } void CPRListen::thread_main() { - info.info("Listening for CPRs."); + info->log("Listening for CPRs."); while(running) { try { string newcpr; @@ -76,15 +76,15 @@ void CPRListen::thread_main() cprchanged = true; cpr = newcpr; mutex.unlock(); - info.info("Got CPR: %s.", cpr.c_str()); + info->log("Got CPR: %s.", cpr.c_str()); } } catch(Network_error &e) { - info.error("In thread_main(): %s.", e.error.c_str()); + info->error("In thread_main(): %s.", e.error.c_str()); running = false; } } - info.info("Stopped listening for CPRs."); + info->log("Stopped listening for CPRs."); } bool CPRListen::cprChanged() |