Updated to compile correctly with logging disabled