refine warning log output