packages/utils/rrdcollect/patches/002-loglevel.patch
florian e72d00035c Add the loglevel patch from #1875
git-svn-id: svn://svn.openwrt.org/openwrt/packages@7584 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-12 11:25:39 +00:00

31 lines
992 B
Diff

diff -urN rrdcollect-0.2.3.old/src/rrdcollect.c rrdcollect-0.2.3/src/rrdcollect.c
--- rrdcollect-0.2.3.old/src/rrdcollect.c 2007-06-06 12:06:01.000000000 -0400
+++ rrdcollect-0.2.3/src/rrdcollect.c 2007-06-06 12:07:05.000000000 -0400
@@ -58,7 +58,7 @@
const char *workdir = NULL;
int step = 60;
int debugoutput = OUTPUT_SYSLOG;
-int debuglevel = LOG_DEBUG; /* from syslog.h */
+int debuglevel = LOG_NOTICE; /* from syslog.h */
/* FIXME - it should be default LOG_NOTICE or LOG_WARNING, but first
option for change it should be added */
@@ -160,7 +160,7 @@
{
optind = opterr = 0;
- send_log(LOG_DEBUG,"rrdlib_update(%i,'%s')",argc,*argv);
+ /* send_log(LOG_DEBUG,"rrdlib_update(%i,'%s')",argc,*argv); */
rrd_update(argc, argv);
if (rrd_test_error()) {
@@ -479,7 +479,7 @@
setitimer(ITIMER_REAL, &period, NULL);
for (;;) {
- send_log(LOG_DEBUG,"tick");
+ /* send_log(LOG_DEBUG,"tick"); */
if (action_request) {
switch (action_request) {
case SIGINT: