[Misc] Use new way of logging + removed deprecated call