From 29c99dae670cfcf186b5af2f615a4ce8b74cbee6 Mon Sep 17 00:00:00 2001 From: deajan Date: Wed, 3 Aug 2016 23:58:38 +0200 Subject: [PATCH] Added new _LOGGER variables --- dev/n_osync.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev/n_osync.sh b/dev/n_osync.sh index 72ee5c6..226701e 100755 --- a/dev/n_osync.sh +++ b/dev/n_osync.sh @@ -49,6 +49,9 @@ source "./ofunctions.sh" ## Working directory. This directory exists in any replica and contains state files, backups, soft deleted files etc OSYNC_DIR=".osync_workdir" +_LOGGER_PREFIX="time" +_LOGGER_STDERR=0 + function TrapStop { if [ $SOFT_STOP -eq 0 ]; then Logger " /!\ WARNING: Manual exit of osync is really not recommended. Sync will be in inconsistent state." "WARN" @@ -1729,6 +1732,8 @@ do --on-changes) sync_on_changes=1 _NOLOCKS=1 + _LOGGER_PREFIX="date" + _LOGGER_STDERR=1 ;; --no-locks) _NOLOCKS=1