Skip to content

Commit

Permalink
Merge pull request kmsquire#37 from kmsquire/fix/v0.5_show_dep_warning
Browse files Browse the repository at this point in the history
Fix deprecation warning for show on v0.5
  • Loading branch information
kmsquire committed Mar 30, 2016
2 parents efc2c7d + 5e4003b commit 0c62b1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Logging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ type Logger
Logger{T<:LogOutput}(name::AbstractString, level::LogLevel, output::Array{T,1}) = (x = new(); x.name = name; x.level=level; x.output=output; x.parent=x)
end

show(io::IO, logger::Logger) = print(io, "Logger(", join([logger.name,
logger.level,
logger.output,
logger.parent.name], ","), ")")
show(io::IO, logger::Logger) = print(io, "Logger(", join(Any[logger.name,
logger.level,
logger.output,
logger.parent.name], ","), ")")

const _root = Logger("root", WARNING, STDERR)
Logger(name::AbstractString;args...) = configure(Logger(name, WARNING, STDERR, _root); args...)
Expand Down

0 comments on commit 0c62b1c

Please sign in to comment.