Skip to content

Commit

Permalink
Enable debug logging from the config file
Browse files Browse the repository at this point in the history
  • Loading branch information
rjemanuele committed Jul 14, 2015
1 parent 8055f8b commit 99d0c1c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.lua
Expand Up @@ -91,6 +91,7 @@ local function start(...)
process:exit(0)
end
-- Set debug logging based on the command line
if argv.args.d or argv.args.u then
log_level = logging.LEVELS['everything']
end
Expand Down Expand Up @@ -231,6 +232,11 @@ local function start(...)
virgo.config['insecure'] = virgo.config['monitoring_insecure']
virgo.config['debug'] = virgo.config['monitoring_debug']
-- Set debug logging based on the config file
if virgo.config['debug'] == 'true' then
logging.instance:setLogLevel(logging.LEVELS['everything'])
end
if argv.args.i or virgo.config['insecure'] == 'true' then
options.tls.ca = certs.caCertsDebug
end
Expand Down

0 comments on commit 99d0c1c

Please sign in to comment.