logging: don't show debug logs when not in debug mode
web: refactor logger