Fix logging
Only enable logs in developent mode, and remove uncaughtException handler