List:Commits« Previous MessageNext Message »
From:Alexander Nozdrin Date:October 23 2006 1:38pm
Subject:bk commit into 5.1 tree (anozdrin:1.2352)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of alik. When alik does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2006-10-23 15:38:01+04:00, anozdrin@booka. +1 -0
  IM polishing: log more information in log.

  server-tools/instance-manager/log.cc@stripped, 2006-10-23 15:37:58+04:00, anozdrin@booka.
+10 -8
    Add pid/thread id to the each log record; split date time fields.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	anozdrin
# Host:	booka.
# Root:	/home/alik/MySQL/devel/5.1-rt-bug17486

--- 1.10/server-tools/instance-manager/log.cc	2006-10-23 15:38:07 +04:00
+++ 1.11/server-tools/instance-manager/log.cc	2006-10-23 15:38:07 +04:00
@@ -52,14 +52,16 @@ static inline void log(FILE *file,  cons
   struct tm bd_time;                            // broken-down time
   localtime_r(&now, &bd_time);
 
-  char buff_date[32];
-  sprintf(buff_date, "%02d%02d%02d %2d:%02d:%02d\t",
-                            bd_time.tm_year % 100,
-                            bd_time.tm_mon + 1,
-                            bd_time.tm_mday,
-                            bd_time.tm_hour,
-                            bd_time.tm_min,
-                            bd_time.tm_sec);
+  char buff_date[128];
+  sprintf(buff_date, "[%d/%d] [%02d/%02d/%02d %02d:%02d:%02d] ",
+          (int) getpid(),
+          (int) pthread_self(),
+          bd_time.tm_year % 100,
+          bd_time.tm_mon + 1,
+          bd_time.tm_mday,
+          bd_time.tm_hour,
+          bd_time.tm_min,
+          bd_time.tm_sec);
   /* Format the message */
   char buff_stack[256];
 
Thread
bk commit into 5.1 tree (anozdrin:1.2352)Alexander Nozdrin23 Oct