Did you forget to `#undef LOG` at the end?  Please just comment these out instead of putting `#if`s everywhere.