bug fix for logger

symptom: logger logs only the first msg for every shock run.