summaryrefslogtreecommitdiff
path: root/test/test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-05-19 01:39:47 +0200
committerCarl Hetherington <cth@carlh.net>2020-05-20 21:56:28 +0200
commit6eec3fea764f2fe35723089d60c51005616905bf (patch)
tree7ce1f10890f7ae7db537dab8e26fcb1482cfb87f /test/test.cc
parentc3983e1ced75c2205fb1c172e2ff4fa44fb569bb (diff)
More logging and make it go to the right place.
Diffstat (limited to 'test/test.cc')
-rw-r--r--test/test.cc16
1 files changed, 15 insertions, 1 deletions
diff --git a/test/test.cc b/test/test.cc
index b6e017acd..3ec78e68b 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -87,7 +87,7 @@ setup_test_config ()
Config::instance()->set_default_j2k_bandwidth (100000000);
Config::instance()->set_default_interop (false);
Config::instance()->set_default_still_length (10);
- Config::instance()->set_log_types (LogEntry::TYPE_GENERAL | LogEntry::TYPE_WARNING | LogEntry::TYPE_ERROR);
+ Config::instance()->set_log_types (LogEntry::TYPE_GENERAL | LogEntry::TYPE_WARNING | LogEntry::TYPE_ERROR | LogEntry::TYPE_DEBUG_THREED | LogEntry::TYPE_DEBUG_ENCODE);
Config::instance()->set_automatic_audio_analysis (false);
}
@@ -531,3 +531,17 @@ make_random_file (boost::filesystem::path path, size_t size)
fclose (r);
free (buffer);
}
+
+
+LogSwitcher::LogSwitcher (shared_ptr<Log> log)
+ : _old (dcpomatic_log)
+{
+ dcpomatic_log = log;
+}
+
+
+LogSwitcher::~LogSwitcher ()
+{
+ dcpomatic_log = _old;
+}
+