loggingmanager: Make initial value for width of log name configurable
authorKim Alvefur <zash@zash.se>
Thu, 4 Feb 2016 16:51:39 +0000 (17:51 +0100)
committerKim Alvefur <zash@zash.se>
Thu, 4 Feb 2016 16:51:39 +0000 (17:51 +0100)
core/loggingmanager.lua

index ee1aa362f30e1b82bb5187be851a32c4df753efb..b47c2ea5114316d5db4dc680a7ad7d477595841c 100644 (file)
@@ -219,7 +219,9 @@ local function log_to_stdout(sink_config)
        if not sink_config.timestamps then
                sink_config.timestamps = false;
        end
-       sink_config.source_width = 20;
+       if sink_config.source_width == nil then
+               sink_config.source_width = 20;
+       end
        return log_to_file(sink_config, stdout);
 end
 log_sink_types.stdout = log_to_stdout;