Add flag to temporarily disable logging