Skip to content

Commit

Permalink
Fix json log format
Browse files Browse the repository at this point in the history
  • Loading branch information
richarddavison committed Jan 15, 2024
1 parent 8da96d4 commit 7b15346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {

if env::var("_HANDLER").is_ok() {
let aws_lambda_json_log_format =
env::var("AWS_LAMBDA_LOG_FORMAT") == Ok("json".to_string());
env::var("AWS_LAMBDA_LOG_FORMAT") == Ok("JSON".to_string());
let aws_lambda_log_level = env::var("AWS_LAMBDA_LOG_LEVEL").unwrap_or_default();
let log_level = LogLevel::from_str(&aws_lambda_log_level);

Expand Down

0 comments on commit 7b15346

Please sign in to comment.