aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DM.cpp
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-06-26 13:23:12 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-26 17:50:30 +0000
commite9f187bd04b03e81d8af8835a1c57a9ad8e373a0 (patch)
tree883a6d4162378efeb84a80f62e916f3b29aafca7 /dm/DM.cpp
parentcff94e407ebec226ec33871b8191270c4e8057b6 (diff)
always touch verbose.log, even if --verbose
This lets us run bots that upload images with --verbose. Today we're getting away with --verbose on some bots because they happen to skip upload. Change-Id: If915a65987b43c945263ada7751bf36aedff605a Reviewed-on: https://skia-review.googlesource.com/20834 Reviewed-by: Ben Wagner <benjaminwagner@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'dm/DM.cpp')
-rw-r--r--dm/DM.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index ad796821a4..dbcf4cb454 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -1289,12 +1289,14 @@ int main(int argc, char** argv) {
gSkForceAnalyticAA = true;
}
- if (FLAGS_verbose) {
- gVLog = stderr;
- } else if (!FLAGS_writePath.isEmpty()) {
+ // The bots like having a verbose.log to upload, so always touch the file even if --verbose.
+ if (!FLAGS_writePath.isEmpty()) {
sk_mkdir(FLAGS_writePath[0]);
gVLog = fopen(SkOSPath::Join(FLAGS_writePath[0], "verbose.log").c_str(), "w");
}
+ if (FLAGS_verbose) {
+ gVLog = stderr;
+ }
GrContextOptions grCtxOptions;
#if SK_SUPPORT_GPU