mirror of
https://git.nolog.cz/NoLog.cz/anon.git
synced 2025-01-31 13:13:35 +01:00
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_std::main]
|
||||||
async fn main() -> Result<()> {
|
async fn main() -> Result<()> {
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
|
log::with_level(log::LevelFilter::Debug);
|
||||||
|
|
||||||
|
#[cfg(not(debug_assertions))]
|
||||||
log::with_level(log::LevelFilter::Error);
|
log::with_level(log::LevelFilter::Error);
|
||||||
|
|
||||||
let mut conf_file =
|
let mut conf_file =
|
||||||
|
|
Loading…
Reference in a new issue