Fix build error by adopting new logging convention