/*
- * Copyright 2013 Facebook, Inc.
+ * Copyright 2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*/
-
#include "folly/experimental/exception_tracer/ExceptionTracer.h"
#include <dlfcn.h>
Symbolizer symbolizer;
symbolizer.symbolize(addresses, frames.data(), frameCount);
- OStreamSymbolizePrinter osp(out);
+ OStreamSymbolizePrinter osp(out, SymbolizePrinter::COLOR_IF_TTY);
osp.println(addresses, frames.data(), frameCount);
}
} catch (const std::exception& e) {
} // namespace exception_tracer
} // namespace folly
-