Refine log statement