Bug #42538 (minor request) reduce prefixes in log - increase readablility
Submitted: 2 Feb 2009 10:36 Modified: 18 Nov 2009 12:26
Reporter: Andrii Nikitin Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Enterprise Monitor: Agent Severity:S4 (Feature request)
Version:2.0.3.7134 OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[2 Feb 2009 10:36] Andrii Nikitin
Description:
Agent log contains too long prefixes which decrease readability like:

2009-02-01 10:18:01: (critical) C:\cygwin\home\mysqldev\bs\merlin\agent-2.0\src\mysql-proxy-0.7.0r1185\plugins\agent\agent_mysqld.c:609: agent connecting to mysql-server failed: mysql_real_connect(host = '127.0.0.1', port = 3306, socket = ''): Can't connect to MySQL server on '127.0.0.1' (0) (mysql-errno = 2003)

I suggest reduce prefix in following way:

10:18:01: (critical) agent_mysqld.c:609: agent connecting to mysql-server failed: mysql_real_connect(host = '127.0.0.1', port = 3306, socket = ''): Can't connect to MySQL server on '127.0.0.1' (0) (mysql-errno = 2003)

This will make logs more readable and reduce log size ~33%

How to repeat:
See live agent log

Suggested fix:
see description
[8 Jul 2009 16:38] Enterprise Tools JIRA Robot
Kay Roepke writes: 
this can be incorporated into the new logging infrastructure
[18 Nov 2009 12:20] Enterprise Tools JIRA Robot
Michael Schuster writes: 
this seems like a duplicate of EM-1562, "agent shows a full file name (from the build server!) in the message+debug log"
[18 Nov 2009 12:26] Michael Schuster
Dup of http://bugs.mysql.com/bug.php?id=23893