Comment out TONIC_DEBUG and wrap debug logging