diff options
author | Anand V. Avati <avati@amp.gluster.com> | 2009-04-28 15:09:22 +0530 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-28 15:09:22 +0530 |
commit | 34f9a0b30043cf7836601cb620b4bcc4239357ac (patch) | |
tree | 0e322eac169dfaca89c0e8d74643846dfcee48d8 | |
parent | 29f111a22fe574eaa6938bf0bd3516796abe597d (diff) |
libglusterfs log cleanup
-rw-r--r-- | libglusterfs/src/common-utils.c | 2 | ||||
-rw-r--r-- | libglusterfs/src/logging.c | 14 |
2 files changed, 6 insertions, 10 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index 32c15637f..fb6948d2d 100644 --- a/libglusterfs/src/common-utils.c +++ b/libglusterfs/src/common-utils.c @@ -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"; diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c index 53311ac79..6f4eb1fb7 100644 --- a/libglusterfs/src/logging.c +++ b/libglusterfs/src/logging.c @@ -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); |