You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: refactor logging and initialization for improved modularity
- Simplify the initialization of the `isTerm` variable.
- Replace inline logging skip logic with a new function `shouldSkipLogging`.
- Replace inline logging event handling with a new function `getLogEvent`.
- Add `shouldSkipLogging` function to determine if logging should be skipped based on path and configuration.
- Add `getLogEvent` function to encapsulate logic for determining the appropriate log event based on the HTTP status and configuration.
Signed-off-by: appleboy <[email protected]>
0 commit comments