summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in10
-rwxr-xr-xxlators/mount/fuse/utils/mount_glusterfs.in10
2 files changed, 14 insertions, 6 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index 58da509f17b..3f9778c65a4 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -25,10 +25,11 @@ _init ()
LOG_CRITICAL=CRITICAL;
LOG_ERROR=ERROR;
LOG_WARNING=WARNING;
+ LOG_NORMAL=NORMAL
LOG_DEBUG=DEBUG;
# set default log level to ERROR
- log_level=$LOG_WARNING;
+ log_level=$LOG_NORMAL;
}
start_glusterfs ()
@@ -42,6 +43,9 @@ start_glusterfs ()
"ERROR")
log_level=$LOG_ERROR;
;;
+ "NORMAL")
+ log_level=$LOG_NORMAL
+ ;;
"DEBUG")
log_level=$LOG_DEBUG;
;;
@@ -55,8 +59,8 @@ start_glusterfs ()
log_level=$LOG_NONE;
;;
*)
- echo "invalid log level $log_level_str, using ERROR";
- log_level=$LOG_ERROR;
+ echo "invalid log level $log_level_str, using NORMAL";
+ log_level=$LOG_NORMAL;
;;
esac
fi
diff --git a/xlators/mount/fuse/utils/mount_glusterfs.in b/xlators/mount/fuse/utils/mount_glusterfs.in
index b064e1eadf4..b6a3d18573d 100755
--- a/xlators/mount/fuse/utils/mount_glusterfs.in
+++ b/xlators/mount/fuse/utils/mount_glusterfs.in
@@ -25,10 +25,11 @@ _init ()
LOG_CRITICAL=CRITICAL;
LOG_ERROR=ERROR;
LOG_WARNING=WARNING;
+ LOG_NORMAL=NORMAL;
LOG_DEBUG=DEBUG;
# set default log level to ERROR
- log_level=$LOG_WARNING;
+ log_level=$LOG_NORMAL;
}
start_glusterfs ()
@@ -42,6 +43,9 @@ start_glusterfs ()
"ERROR")
log_level=$LOG_ERROR;
;;
+ "NORMAL")
+ log_level=$LOG_NORMAL;
+ ;;
"DEBUG")
log_level=$LOG_DEBUG;
;;
@@ -55,8 +59,8 @@ start_glusterfs ()
log_level=$LOG_NONE;
;;
*)
- echo "invalid log level $log_level_str, using ERROR";
- log_level=$LOG_WARNING;
+ echo "invalid log level $log_level_str, using NORMAL";
+ log_level=$LOG_NORMAL;
;;
esac
fi