From e3cc55d32281be5dd7b7017d6dfed42be24d3cda Mon Sep 17 00:00:00 2001 From: Matthias Braendli Date: Tue, 2 Jun 2015 12:25:40 +0200 Subject: Logging: use etiLog instead of stderr --- src/TimestampDecoder.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/TimestampDecoder.h') diff --git a/src/TimestampDecoder.h b/src/TimestampDecoder.h index 8c6b362..82753d1 100644 --- a/src/TimestampDecoder.h +++ b/src/TimestampDecoder.h @@ -113,9 +113,8 @@ class TimestampDecoder { public: TimestampDecoder( - struct modulator_offset_config& config, - Logger& logger): - myLogger(logger), modconfig(config) + struct modulator_offset_config& config) : + modconfig(config) { inhibit_second_update = 0; time_pps = 0.0; @@ -126,8 +125,8 @@ class TimestampDecoder gmtime_r(0, &temp_time); offset_changed = false; - myLogger.level(info) << "Setting up timestamp decoder with " << - (modconfig.use_offset_fixed ? "fixed" : + etiLog.level(info) << "Setting up timestamp decoder with " << + (modconfig.use_offset_fixed ? "fixed" : (modconfig.use_offset_file ? "dynamic" : "none")) << " offset"; @@ -148,9 +147,6 @@ class TimestampDecoder bool updateModulatorOffset(); protected: - /* Main program logger */ - Logger& myLogger; - /* Push a new MNSC field into the decoder */ void pushMNSCData(int framephase, uint16_t mnsc); -- cgit v1.2.3