libglusterfs log cleanup
This commit is contained in:
parent
29f111a22f
commit
34f9a0b300
@ -207,6 +207,7 @@ gf_global_variable_init()
|
||||
gf_fop_list[GF_FOP_FENTRYLK] = "FENTRYLK"; /* 40 */
|
||||
gf_fop_list[GF_FOP_CHECKSUM] = "CHECKSUM"; /* 41 */
|
||||
gf_fop_list[GF_FOP_XATTROP] = "XATTROP";
|
||||
gf_fop_list[GF_FOP_FXATTROP] = "FXATTROP";
|
||||
gf_fop_list[GF_FOP_LOCK_NOTIFY] = "LOCK_NOTIFY";
|
||||
gf_fop_list[GF_FOP_LOCK_FNOTIFY]= "LOCK_FNOTIFY";
|
||||
gf_fop_list[GF_FOP_FSETXATTR] = "FSETXATTR";
|
||||
@ -217,6 +218,7 @@ gf_global_variable_init()
|
||||
gf_mop_list[GF_MOP_STATS] = "STATS";
|
||||
gf_mop_list[GF_MOP_SETSPEC] = "SETSPEC";
|
||||
gf_mop_list[GF_MOP_GETSPEC] = "GETSPEC";
|
||||
gf_mop_list[GF_MOP_PING] = "PING";
|
||||
|
||||
gf_cbk_list[GF_CBK_FORGET] = "FORGET";
|
||||
gf_cbk_list[GF_CBK_RELEASE] = "RELEASE";
|
||||
|
@ -190,16 +190,10 @@ log:
|
||||
else
|
||||
basename = file;
|
||||
|
||||
if (level >= GF_LOG_DEBUG) {
|
||||
fprintf (logfile, "[%s] %s [%s:%d:%s] %s: ",
|
||||
timestr, level_strings[level],
|
||||
basename, line, function,
|
||||
domain);
|
||||
} else {
|
||||
fprintf (logfile, "[%s] %s %s: ",
|
||||
timestr, level_strings[level],
|
||||
domain);
|
||||
}
|
||||
fprintf (logfile, "[%s] %s [%s:%d:%s] %s: ",
|
||||
timestr, level_strings[level],
|
||||
basename, line, function,
|
||||
domain);
|
||||
|
||||
vfprintf (logfile, fmt, ap);
|
||||
va_end (ap);
|
||||
|
Loading…
x
Reference in New Issue
Block a user