Skip to content
This repository was archived by the owner on Jan 29, 2022. It is now read-only.

Commit d45ee60

Browse files
committed
Change webrick log constants to strings to match conf file
1 parent e8a6d40 commit d45ee60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/puppet_webhook

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ options = {
1010
host: '0.0.0.0',
1111
port: '8088',
1212
logfile: $stderr,
13-
loglevel: WEBrick::Log::WARN,
13+
loglevel: 'WARN',
1414
server_type: WEBrick::SimpleServer
1515
}
1616

@@ -23,7 +23,7 @@ optparse = OptionParser.new do |opts| # rubocop:disable Metrics/BlockLength
2323
'
2424

2525
opts.on('-d', '--debug', 'Display or log messages.') do
26-
options[:loglevel] = WEBrick::Log::DEBUG
26+
options[:loglevel] = 'DEBUG'
2727
end
2828

2929
opts.on('-l [LOGFILE]', '--logfile [LOGFILE]',

0 commit comments

Comments
 (0)