Skip to content

Commit

Permalink
Merge pull request #35 from kostya/master
Browse files Browse the repository at this point in the history
fix compilation with crystal 0.23
  • Loading branch information
Jesse Doyle authored Jul 25, 2017
2 parents fe5692a + 2729d79 commit ed3ddab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/duktape/logger.cr
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ module Duktape
end
end

private def self.log_color(level : String)
private def self.log_color(level : Logger::Severity)
case level
when "INFO"
when Logger::INFO
:light_cyan
when "WARN"
when Logger::WARN
:white
when "ERROR"
when Logger::ERROR
:yellow
when "FATAL"
when Logger::FATAL
:red
when "DEBUG"
when Logger::DEBUG
:magenta
else
:light_gray
Expand Down

0 comments on commit ed3ddab

Please sign in to comment.