Skip to main content

get_debug_level

Function get_debug_level 

Source
pub fn get_debug_level(args: &[String]) -> DebugLevel
Expand description

Get the current debug level from environment variable or flags

Priority:

  1. –trace flag → Trace
  2. –debug flag → Debug
  3. SLACK_RS_DEBUG env → Debug
  4. Default → Off