Skip to content

Commit

Permalink
Merge pull request #36 from invenia/rf/log-levels
Browse files Browse the repository at this point in the history
Fixed default log level typo.
  • Loading branch information
rofinn authored Nov 27, 2017
2 parents 2083a54 + dcabd72 commit 7ab0c4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Memento.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ const global _log_levels = Dict{AbstractString, Int}(
"notice" => 30,
"warn" => 40,
"error" => 50,
"critical" => 50,
"alert" => 60,
"emergency" => 70
"critical" => 60,
"alert" => 70,
"emergency" => 80
)

include("io.jl")
Expand Down
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ cd(dirname(@__FILE__))
close(io)
end
end

@testset "Default Levels" begin
@test allunique(values(Memento._log_levels))
end
end


Expand Down

0 comments on commit 7ab0c4d

Please sign in to comment.