[3.0] Add a condition to remove needless log message