chusiang / mysql-master-master

Automatically exported from code.google.com/p/mysql-master-master
GNU General Public License v2.0
1 stars 1 forks source link

checker logging is overly verbose even with debug disabled #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Disable debug logging in mmm_mon.conf
2. Start mmmd_mon
3. Notice verbose (debug) type entries in var/checker/*.log files

What is the expected output? What do you see instead?

I expect to see significant state changes, warnings, and other important issues 
logged and not 
every single action taken.

What version of the product are you using? On what operating system?

mmm-1.0 from trunk (revision 93).

Please provide any additional information below.

Log entries like these should generally not appear during normal non-debug 
operation.

[2008-09-10 12:52:06]: 16602: Waiting for a command...
[2008-09-10 12:52:06]: 16602: Got cmd = 'ping'
[2008-09-10 12:52:06]: 16602: Ping received
[2008-09-10 12:52:06]: 16602: Waiting for a command...
[2008-09-10 12:52:06]: 16602: Got cmd = 'check db04'

Attached is a patch to only log these entries if debug is enabled in the config 
file.

Original issue reported on code.google.com by batal...@gmail.com on 10 Sep 2008 at 5:04

Attachments:

GoogleCodeExporter commented 9 years ago
Applied the patch. Thanks.

Original comment by kovy...@gmail.com on 4 Oct 2008 at 8:41