make logging tolerate with wrong log message