DM: make --verbose send the vlog to stderr.

See if this works out for you?
I've just turned off --verbose on the bots, so this ought to be safe now.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1808203004

Review URL: https://codereview.chromium.org/1808203004
This commit is contained in:
mtklein 2016-03-17 12:53:36 -07:00 committed by Commit bot
parent 9e3f1bf4e5
commit a483da395a

View File

@ -1311,7 +1311,9 @@ int dm_main();
int dm_main() {
setup_crash_handler();
if (!FLAGS_writePath.isEmpty()) {
if (FLAGS_verbose) {
gVLog = stderr;
} else if (!FLAGS_writePath.isEmpty()) {
sk_mkdir(FLAGS_writePath[0]);
gVLog = freopen(SkOSPath::Join(FLAGS_writePath[0], "verbose.log").c_str(), "w", stderr);
}