add logging to settings.py