mirror of https://github.com/aristocratos/bashtop
added --debug argument for extended error tracing
parent
2cea1cbba8
commit
952d19cf89
8
bashtop
8
bashtop
|
@ -3436,9 +3436,11 @@ if [[ $error_logging == true ]]; then
|
||||||
fi
|
fi
|
||||||
( echo " " ; echo "New instance of bashtop version: ${version} Pid: $$" ) >> "${config_dir}/error.log"
|
( echo " " ; echo "New instance of bashtop version: ${version} Pid: $$" ) >> "${config_dir}/error.log"
|
||||||
exec 2>>"${config_dir}/error.log"
|
exec 2>>"${config_dir}/error.log"
|
||||||
# exec 19>"${config_dir}/tracing.log"
|
if [[ $1 == "--debug" ]]; then
|
||||||
# BASH_XTRACEFD=19
|
exec 19>"${config_dir}/tracing.log"
|
||||||
# set -x
|
BASH_XTRACEFD=19
|
||||||
|
set -x
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
exec 2>/dev/null
|
exec 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue