[xiph-commits] r14542 - trunk/icecast2yp/src
karl at svn.xiph.org
karl at svn.xiph.org
Mon Feb 25 20:48:49 PST 2008
Author: karl
Date: 2008-02-25 20:48:48 -0800 (Mon, 25 Feb 2008)
New Revision: 14542
Modified:
trunk/icecast2yp/src/log.c
Log:
save doing a bunch of time-related system calls for log entries when level not high enough
Modified: trunk/icecast2yp/src/log.c
===================================================================
--- trunk/icecast2yp/src/log.c 2008-02-26 01:23:49 UTC (rev 14541)
+++ trunk/icecast2yp/src/log.c 2008-02-26 04:48:48 UTC (rev 14542)
@@ -42,6 +42,9 @@
int parseableOutput = 0;
char timeStamp[255];
+ if (type > globalErrorType)
+ return;
+
memset(timeStamp, '\000', sizeof(timeStamp));
time(&t);
@@ -68,7 +71,7 @@
}
- if (type <= globalErrorType) {
+ {
va_start(parms, fmt);
if (filep == 0) {
More information about the commits
mailing list