fix(engine): check if log level is enabled for log statement

related to CAM-1240