Skip to content

Commit

Permalink
imp: add filter log
Browse files Browse the repository at this point in the history
  • Loading branch information
DongGeon0908 committed Aug 29, 2024
1 parent fc57b75 commit e0264b8
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ class SystemActionLogEventListener(

/** 불필요한 로그는 적재하지 않는다. */
private fun filterLog(event: SystemActionLogEvent): Boolean {
return !event.path.equals("/api/v1/health")
if (event.path.equals("/api/v1/health")) {
return false
}

if (event.path?.startsWith("/api/") == true) {
return true
}

return false
}
}

0 comments on commit e0264b8

Please sign in to comment.