From f0da433894308ed72b0dbdd116a30a8d659c33cc Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 15 Oct 2015 12:03:30 +0100 Subject: Log to stdout in DCPOMATIC_DEBUG. --- src/lib/log.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/log.cc b/src/lib/log.cc index 0f7a59ff8..d4f469602 100644 --- a/src/lib/log.cc +++ b/src/lib/log.cc @@ -32,6 +32,7 @@ #include "i18n.h" using std::string; +using std::cout; using boost::shared_ptr; Log::Log () @@ -69,7 +70,13 @@ Log::log (string message, int type) return; } - do_log (shared_ptr (new StringLogEntry (type, message))); + shared_ptr e (new StringLogEntry (type, message)); + +#ifdef DCPOMATIC_DEBUG + cout << e->get() << "\n"; +#endif + + do_log (e); } void -- cgit v1.2.3