| Index: dm/DM.cpp
|
| diff --git a/dm/DM.cpp b/dm/DM.cpp
|
| index 2196e608036f1bcea1686a08b56389543981ca3b..f70d19e0aea3155de6d551df6fac37616cf40f82 100644
|
| --- a/dm/DM.cpp
|
| +++ b/dm/DM.cpp
|
| @@ -1303,9 +1303,13 @@ int dm_main();
|
| int dm_main() {
|
| setup_crash_handler();
|
|
|
| - if (FLAGS_verbose && !FLAGS_writePath.isEmpty()) {
|
| - sk_mkdir(FLAGS_writePath[0]);
|
| - gVLog = freopen(SkOSPath::Join(FLAGS_writePath[0], "verbose.log").c_str(), "w", stderr);
|
| + if (FLAGS_verbose) {
|
| + if(!FLAGS_writePath.isEmpty()) {
|
| + sk_mkdir(FLAGS_writePath[0]);
|
| + gVLog = freopen(SkOSPath::Join(FLAGS_writePath[0], "verbose.log").c_str(), "w", stderr);
|
| + } else {
|
| + gVLog = stderr;
|
| + }
|
| }
|
|
|
| JsonWriter::DumpJson(); // It's handy for the bots to assume this is ~never missing.
|
|
|