Don't flush debug stream if debugging is disabled.
Thanks to x190.