Log message instead of printing to stdout (#11556)

Change-Id: I0b297e2eb48e6c52558745650a18d9c466e4b8c2