Replace print calls with logger messages posting

Change-Id: Ic358a15aaf26335e5046069967de0696b607deda