Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Mar 25, 2017 4:51 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Global debug logging bug with up to cacti 1.0.4
PostPosted: Thu Mar 09, 2017 1:11 pm 
Offline

Joined: Wed Mar 01, 2017 2:34 pm
Posts: 8
Cacti does not log debug messages if the global loglevel in the settings is set to debug. The loglevel check in functions.php isn't correct. I assume you developers never did see this, because since 1.0 we only use device debug, no global debug.
This is a fix:
Code:
[root@co7test lib]# diff -u functions.php-orig functions.php
--- functions.php-orig  2017-02-27 00:23:45.000000000 +0100
+++ functions.php       2017-03-08 18:06:18.891831872 +0100
@@ -628,7 +628,7 @@
                                }
                        }
                }
-       }elseif ($level != '' && $level >= read_config_option('log_verbosity', true)) {
+       }elseif ($level != '' && $level > read_config_option('log_verbosity', true)) {
                return;
        }


Top
 Profile  
 
 Post subject: Re: Global debug logging bug with up to cacti 1.0.4
PostPosted: Mon Mar 13, 2017 7:53 pm 
Offline
Cacti User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 109
Please open a bug in Github. The forums are no place for this.

_________________
Before history, there was a paradise, now dust.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group