4017da95db
o Add non-default hint to reduce the load of syslogd message.
14 lines
323 B
C++
14 lines
323 B
C++
--- src/SysLog.cc.orig Sat Sep 6 23:03:07 2003
|
|
+++ src/SysLog.cc Sat Sep 6 23:07:08 2003
|
|
@@ -57,7 +57,11 @@
|
|
|
|
char* pbuf = new char[strlen(format)*3];
|
|
::vsprintf(pbuf, format, ap);
|
|
+#if defined(NDEBUG)
|
|
+ if (lvl <= LOG_ERR) ::syslog(lvl, pbuf);
|
|
+#else
|
|
::syslog(lvl, pbuf);
|
|
+#endif
|
|
delete [] pbuf;
|
|
|
|
va_end(ap);
|