log time with error message