void Logger::log(const string &msg, Urgency u)
{
+#ifndef RECURSOR
bool mustAccount(false);
+#endif
struct tm tm;
time_t t;
time(&t);
static pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
Lock l(&m); // the C++-2011 spec says we need this, and OSX actually does
clog << string(buffer) + msg <<endl;
+#ifndef RECURSOR
mustAccount=true;
+#endif
}
if( u <= d_loglevel && !d_disableSyslog ) {
syslog(u,"%s",msg.c_str());
+#ifndef RECURSOR
mustAccount=true;
+#endif
}
#ifndef RECURSOR