Fix log format

This commit is contained in:
cn 2013-04-27 23:27:55 +02:00
parent 94fca57fb9
commit fab95058bf
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ module Dyndnsd
class LogFormatter
def call(lvl, time, progname, msg)
"%s: %s\n" % [lvl, msg.to_s]
"[%s] %-5s %s\n" % [Time.now.strftime('%Y-%m-%d %H:%M:%S'), lvl, msg.to_s]
end
end