Hide some of the logging behind a flag.