reduce duplicate print in log debug