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

Commit

Permalink
Merge pull request #80 from dhollinger/const_to_string
Browse files Browse the repository at this point in the history
Change webrick log constants to strings to match conf file
  • Loading branch information
dhollinger authored Dec 23, 2018
2 parents e8a6d40 + d45ee60 commit 72e3b4a
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 72e3b4a

Please sign in to comment.