dont set logger if in app.debug mode