Skip to content

Commit

Permalink
update:LOG_LEVEL
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhuo23 committed Oct 15, 2024
1 parent 00118be commit ef55b25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion component-generated/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use tracing_subscriber::{fmt, prelude::*, EnvFilter};
use crate::config;

lazy_static::lazy_static! {
pub static ref LOG_ENV: String = format!("{}_LOGLEVEL", config::PROJECT_NAME.clone());
pub static ref LOG_ENV: String = format!("{}_LOG_LEVEL", config::PROJECT_NAME.clone());
pub static ref LOG_FILE: String = format!("{}.log", env!("CARGO_PKG_NAME"));
}

Expand Down
2 changes: 1 addition & 1 deletion component/template/.envrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export {{crate_name | shouty_snake_case}}_CONFIG=`pwd`/.config
export {{crate_name | shouty_snake_case}}_DATA=`pwd`/.data
export {{crate_name | shouty_snake_case}}_LOGLEVEL=debug
export {{crate_name | shouty_snake_case}}_LOG_LEVEL=debug
2 changes: 1 addition & 1 deletion component/template/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use tracing_subscriber::{fmt, prelude::*, EnvFilter};
use crate::config;

lazy_static::lazy_static! {
pub static ref LOG_ENV: String = format!("{}_LOGLEVEL", config::PROJECT_NAME.clone());
pub static ref LOG_ENV: String = format!("{}_LOG_LEVEL", config::PROJECT_NAME.clone());
pub static ref LOG_FILE: String = format!("{}.log", env!("CARGO_PKG_NAME"));
}

Expand Down

0 comments on commit ef55b25

Please sign in to comment.