Software /
code /
prosody
Comparison
core/loggingmanager.lua @ 1892:adc0c80413ee
loggingmanager: Whitespace fix
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 04 Oct 2009 16:41:33 +0100 |
parent | 1613:ebf0813a81f6 |
child | 2139:625b2d3e8900 |
comparison
equal
deleted
inserted
replaced
1891:fd725a28141d | 1892:adc0c80413ee |
---|---|
185 end | 185 end |
186 | 186 |
187 return function (name, level, message, ...) | 187 return function (name, level, message, ...) |
188 sourcewidth = math_max(#name+2, sourcewidth); | 188 sourcewidth = math_max(#name+2, sourcewidth); |
189 local namelen = #name; | 189 local namelen = #name; |
190 | |
190 if timestamps then | 191 if timestamps then |
191 io_write(os_date(timestamps), " "); | 192 io_write(os_date(timestamps), " "); |
192 end | 193 end |
193 if ... then | 194 if ... then |
194 io_write(name, rep(" ", sourcewidth-namelen), getstring(logstyles[level], level), "\t", format(message, ...), "\n"); | 195 io_write(name, rep(" ", sourcewidth-namelen), getstring(logstyles[level], level), "\t", format(message, ...), "\n"); |