converted printfs into log messages for traffic generator