Ignore:
Timestamp:
01/08/2007 00:18:50 (5 years ago)
Author:
chris
Message:

Replace almost all calls to syslog() with logging framework. (merges [1783])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/general/lib/common/BoxTime.cpp

    r1318 r1784  
    1313        #include <sys/time.h> 
    1414#endif 
     15 
    1516#ifdef HAVE_TIME_H 
    1617        #include <time.h> 
    1718#endif 
    18 #ifdef HAVE_SYSLOG_H 
    19         #include <syslog.h> 
    20 #endif 
     19 
    2120#include <errno.h> 
    2221#include <string.h> 
     
    4140                if (gettimeofday(&tv, NULL) != 0) 
    4241                { 
    43                         ::syslog(LOG_ERR, "gettimeofday() failed (%s), " 
    44                                 "dropping precision", strerror(errno)); 
     42                        BOX_ERROR("Failed to gettimeofday(), dropping " 
     43                                "precision: " << strerror(errno)); 
    4544                } 
    4645                else 
Note: See TracChangeset for help on using the changeset viewer.