Fix Macro when logger is disabled