Fixed incorrect logging (#12241)

Change-Id: Icfe32a26f9069b7c5ed8160dba93b806754acf58