aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-03-17 12:53:36 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-17 12:53:36 -0700
commita483da395a4f3b82073057420ac1318d2c7f3f95 (patch)
tree780bfcb09d019402f0f7701a7b9892b5f2fa6e28 /dm
parent9e3f1bf4e5cd8fc59554f986f36d6b034e99f9eb (diff)
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
Diffstat (limited to 'dm')
-rw-r--r--dm/DM.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 24c47992e3..13024633ab 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -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);
}