Write logs to STDERR on remote side
This commit is contained in:
parent
7bb6eebea3
commit
9129020daf
3
osync.sh
3
osync.sh
|
@ -2083,7 +2083,8 @@ local DELETE_CMD_INPUT=$(cat << 'ENDSSH'
|
|||
## The following lines are executed remotely
|
||||
function _logger {
|
||||
local value="${1}" # What to log
|
||||
echo -e "$value" >> "$LOG_FILE"
|
||||
#echo -e "$value" >> "$LOG_FILE"
|
||||
echo -e "$value" >&2 # writing to STDERR because
|
||||
|
||||
if [ $_SILENT -eq 0 ]; then
|
||||
echo -e "$value"
|
||||
|
|
Loading…
Reference in New Issue