Fixed logger formatting issues in fsm.py.