DM: don't redirect stderr to verbose.log
authormtklein <mtklein@chromium.org>
Fri, 22 Jul 2016 19:23:46 +0000 (12:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 22 Jul 2016 19:23:46 +0000 (12:23 -0700)
verbose.log is currently tricky to get to, so it's hurting more than it
helps to direct stderr there.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2178583002

Review-Url: https://codereview.chromium.org/2178583002

dm/DM.cpp

index cccc92b9faf4b63b5a48187e63b563f709f32cbe..d931a9a8e981d599e69643df4ba958c58b529f06 100644 (file)
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -1265,7 +1265,7 @@ int dm_main() {
         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);
+        gVLog = fopen(SkOSPath::Join(FLAGS_writePath[0], "verbose.log").c_str(), "w");
     }
 
     JsonWriter::DumpJson();  // It's handy for the bots to assume this is ~never missing.