diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-02-11 11:04:26 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-02-11 11:04:26 +0000 |
commit | 2294aed6cee3834786136fd0fc1df84e685c5889 (patch) | |
tree | 477a12362c6bb6793ea67aa87d7a791b565f3a47 /core/loggingmanager.lua | |
parent | f33b657ef4ff9cd6dedbceefced8d9c7bf76cd0b (diff) | |
download | prosody-2294aed6cee3834786136fd0fc1df84e685c5889.tar.gz prosody-2294aed6cee3834786136fd0fc1df84e685c5889.zip |
loggingmanager: Trailing whitespace
Diffstat (limited to 'core/loggingmanager.lua')
-rw-r--r-- | core/loggingmanager.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/loggingmanager.lua b/core/loggingmanager.lua index 4154e1a7..1bf90db1 100644 --- a/core/loggingmanager.lua +++ b/core/loggingmanager.lua @@ -94,7 +94,7 @@ function apply_sink_rules(sink_type) end end elseif type(logging_config) == "string" and (not logging_config:match("^%*")) and sink_type == "file" then - -- User specified simply a filename, and the "file" sink type + -- User specified simply a filename, and the "file" sink type -- was just added for _, sink_config in pairs(default_file_logging) do sink_config.filename = logging_config; @@ -128,7 +128,7 @@ function get_levels(criteria, set) return set; elseif in_range then set[level] = true; - end + end end end @@ -161,12 +161,12 @@ function log_sink_types.stdout() if timestamps then io_write(os_date(timestamps), " "); end - if ... then + if ... then io_write(name, rep(" ", sourcewidth-namelen), level, "\t", format(message, ...), "\n"); else io_write(name, rep(" ", sourcewidth-namelen), level, "\t", message, "\n"); end - end + end end do @@ -197,7 +197,7 @@ do if timestamps then io_write(os_date(timestamps), " "); end - if ... then + if ... then io_write(name, rep(" ", sourcewidth-namelen), getstring(logstyles[level], level), "\t", format(message, ...), "\n"); else io_write(name, rep(" ", sourcewidth-namelen), getstring(logstyles[level], level), "\t", message, "\n"); @@ -237,7 +237,7 @@ function log_sink_types.file(config) if timestamps then write(logfile, os_date(timestamps), " "); end - if ... then + if ... then write(logfile, name, "\t", level, "\t", format(message, ...), "\n"); else write(logfile, name, "\t" , level, "\t", message, "\n"); |