We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95c2aba commit 0f94205Copy full SHA for 0f94205
1 file changed
lua/devcontainer-cli/log.lua
@@ -96,7 +96,7 @@ log.new = function(config, standalone)
96
local lineinfo = info.short_src .. ":" .. info.currentline
97
98
-- Output to console
99
- if config.use_console and level < levels[config.console_level] then
+ if config.use_console and level >= levels[config.console_level] then
100
local console_string = string.format(
101
"[%-6s%s] %s: %s",
102
nameupper,
@@ -120,7 +120,7 @@ log.new = function(config, standalone)
120
end
121
122
-- Output to log file
123
- if config.use_file and level < levels[config.log_level] then
+ if config.use_file and level >= levels[config.log_level] then
124
local fp = io.open(outfile, "a")
125
local str = string.format("[%-6s%s] %s: %s\n",
126
nameupper, os.date(), lineinfo, msg)
0 commit comments