Edit log debug and error messages