Add macro to avoid warning while not using logging mode