remove unneeded newline and add timestamps to log messages