set logging level based on build type
This commit is contained in:
parent
2b69e03c03
commit
987748159a
1 changed files with 4 additions and 0 deletions
|
@ -538,6 +538,10 @@ pub struct Authorization {
|
|||
|
||||
#[async_std::main]
|
||||
async fn main() -> Result<()> {
|
||||
#[cfg(debug_assertions)]
|
||||
log::with_level(log::LevelFilter::Debug);
|
||||
|
||||
#[cfg(not(debug_assertions))]
|
||||
log::with_level(log::LevelFilter::Error);
|
||||
|
||||
let mut conf_file =
|
||||
|
|
Loading…
Reference in a new issue