diff options
author | Raghavendra G <raghavendra@zresearch.com> | 2009-03-30 21:14:45 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-03-31 23:39:45 +0530 |
commit | 9922b37658d7d996321382c5157bf33bbbb1330d (patch) | |
tree | 11852674fbdc91867e1538da197aaf492aa16d7c /xlators/mount | |
parent | a0c1de7c9cf41d37f95660fe45da66418e263340 (diff) |
Add support for log-level NORMAL in fuse mount helper script.
- patch submitted by John Feuerstein <john@feurix.com>.
- copying changes in the patch verbatim to
xlators/mount/fuse/utils/mount.glusterfs.in and
xlators/mount/fuse/utils/mount_glusterfs.in
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/mount')
-rwxr-xr-x | xlators/mount/fuse/utils/mount.glusterfs.in | 10 | ||||
-rwxr-xr-x | xlators/mount/fuse/utils/mount_glusterfs.in | 10 |
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 |