Skip to content

Commit

Permalink
fix(cdk-ops): NULL user_agent
Browse files Browse the repository at this point in the history
- Fixes the bug that `lambda/load-access-logs` crashed when `user_agent`
  was `NULL`. Replaces `NULL` with a dash (`-`).

issue codemonger-io#30
  • Loading branch information
kikuomax committed Oct 15, 2022
1 parent 284ae05 commit 00ab4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdk-ops/lambda/load-access-logs/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def get_create_access_log_stage_table_statement() -> str:
' cs_uri_stem,',
' status,',
" CASE WHEN referer IS NULL THEN '-' ELSE referer END,",
' user_agent,',
" CASE WHEN user_agent IS NULL THEN '-' ELSE user_agent END,",
' cs_protocol,',
' cs_bytes,',
' time_taken,',
Expand Down

0 comments on commit 00ab4f6

Please sign in to comment.