No need to import traceback just to log the exception. Use this instead:
```
log.error("Error occured:", exc_info=True)
```
This works for all log levels.