Skip to content

Commit

Permalink
Add CLI for log level
Browse files Browse the repository at this point in the history
  • Loading branch information
nsavoire committed Nov 14, 2023
1 parent 63a5d9b commit d2c4947
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ddprof_cli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,10 @@ int DDProfCLI::parse(int argc, const char *argv[]) {

// Debug
app.add_option("--log_level,-l", log_level,
"One of debug, notice, warn, error.")
"One of debug, informational, notice, warn, error.")
->default_val("error")
->check(
CLI::IsMember({"debug", "informational", "notice", "warn", "error"}))
->group("Debug options")
->envname("DD_PROFILING_NATIVE_LOG_LEVEL");
//
Expand Down

0 comments on commit d2c4947

Please sign in to comment.