From 9b52717a92ed9592bd98a41683509f538262a5c7 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Thu, 1 Dec 2011 17:36:22 -0800 Subject: Trace: FIx issue with creation of trace file with output dir overhaul. --HG-- extra : rebase_source : c1ab57ea8805703d97cdee4f32410821a2d2a9db --- src/base/trace.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/base/trace.cc b/src/base/trace.cc index 1a035d400..fa55e42a9 100644 --- a/src/base/trace.cc +++ b/src/base/trace.cc @@ -64,6 +64,8 @@ void setOutput(const string &filename) { dprintf_stream = simout.find(filename); + if (!dprintf_stream) + dprintf_stream = simout.create(filename); } ObjectMatch ignore; -- cgit v1.2.3