freebsd-ports/databases/usogres/files/patch-SysLog.cc
Jun Kuriyama 4017da95db o Remove unneeded plist entry.
o Add non-default hint to reduce the load of syslogd message.
2003-09-07 12:34:16 +00:00

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);