If --log is specified then we don't write to stdout.