diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-07-31 23:18:05 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-07-31 23:18:05 +0000 |
commit | 0b2fd98dd63c533e00c0d61ce022f37ee75857cc (patch) | |
tree | 5daa2a50b28b572e01281b622fee3adf818f5075 /lib/common/BoxTime.cpp | |
parent | 05db569d4efc62eaa10597142b8eac4937421e14 (diff) |
Replace almost all calls to syslog() with logging framework. (refs #3)
Diffstat (limited to 'lib/common/BoxTime.cpp')
-rw-r--r-- | lib/common/BoxTime.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/common/BoxTime.cpp b/lib/common/BoxTime.cpp index eafb244f..1ddcffd4 100644 --- a/lib/common/BoxTime.cpp +++ b/lib/common/BoxTime.cpp @@ -12,12 +12,11 @@ #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif + #ifdef HAVE_TIME_H #include <time.h> #endif -#ifdef HAVE_SYSLOG_H - #include <syslog.h> -#endif + #include <errno.h> #include <string.h> @@ -40,8 +39,8 @@ box_time_t GetCurrentBoxTime() struct timeval tv; if (gettimeofday(&tv, NULL) != 0) { - ::syslog(LOG_ERR, "gettimeofday() failed (%s), " - "dropping precision", strerror(errno)); + BOX_ERROR("Failed to gettimeofday(), dropping " + "precision: " << strerror(errno)); } else { |