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

Change webrick log constants to strings to match conf file #80

Merged
merged 1 commit into from
Dec 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/puppet_webhook
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ options = {
host: '0.0.0.0',
port: '8088',
logfile: $stderr,
loglevel: WEBrick::Log::WARN,
loglevel: 'WARN',
server_type: WEBrick::SimpleServer
}

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

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

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