logging color change for duration + error formatting cleanup