diff --git a/docs/ngcpcfg.txt b/docs/ngcpcfg.txt index 263c5e8f..c7e0fb80 100644 --- a/docs/ngcpcfg.txt +++ b/docs/ngcpcfg.txt @@ -176,6 +176,8 @@ Options **--debug** []:: Run actions (see next section) in verbose mode, useful for debugging. +Debug output will be sent to syslog (available as /var/log/ngcp/ngcpcfg.log on +NGCP systems) as well as stderr. **--help**:: diff --git a/functions/main b/functions/main index bc4e9128..d629ee4c 100644 --- a/functions/main +++ b/functions/main @@ -44,7 +44,7 @@ log_error() { log_debug() { if [ -n "${DEBUG:-}" ] ; then logger -t ngcpcfg -- "Debug: $*" - console_output "DEBUG: $*\n" + console_output "DEBUG: $*\n" >&2 fi }