summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/logging.c
diff options
context:
space:
mode:
authorAnand V. Avati <avati@amp.gluster.com>2009-04-28 15:09:22 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-04-28 15:09:22 +0530
commit34f9a0b30043cf7836601cb620b4bcc4239357ac (patch)
tree0e322eac169dfaca89c0e8d74643846dfcee48d8 /libglusterfs/src/logging.c
parent29f111a22fe574eaa6938bf0bd3516796abe597d (diff)
libglusterfs log cleanup
Diffstat (limited to 'libglusterfs/src/logging.c')
-rw-r--r--libglusterfs/src/logging.c14
1 files changed, 4 insertions, 10 deletions
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);