summaryrefslogtreecommitdiffstats
path: root/databases/usogres/files/patch-SysLog.cc
blob: 68a7efbaad603a4aad9ab6bde3fdbdac375a4a04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- 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);
OpenPOWER on IntegriCloud