Better error handling, use dev conf for dev env
Loglevel Debug for Production log is a bit stupid