[s/main.py] enable logging in main loop