Fix debugger only in test and dev
Fix logging for !development envs