Protecting some logs with ifdef