Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'agent/tcf/main/main_lua.c')
-rw-r--r--agent/tcf/main/main_lua.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/agent/tcf/main/main_lua.c b/agent/tcf/main/main_lua.c
index 0b300784..eca0a5d1 100644
--- a/agent/tcf/main/main_lua.c
+++ b/agent/tcf/main/main_lua.c
@@ -1493,7 +1493,10 @@ int main(int argc, char ** argv) {
}
switch (c) {
case 'l':
- log_mode = strtol(s, 0, 0);
+ if (parse_trace_mode(s, &log_mode) != 0) {
+ fprintf(stderr, "Cannot parse log level: %s\n", s);
+ exit(1);
+ }
break;
case 'L':

Back to the top