added logging to setting.py