log exceptions in debug