diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-11-26 01:22:06 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-11-26 01:22:06 +0000 |
| commit | b1aae1f32e72cd96768d6134ef62fd4b45a9bd54 (patch) | |
| tree | 5fde83efa2e96ec58a85688168dfd439fc4aa363 /src/lib/file_log.cc | |
| parent | e2e5928f1056cfc555a87060592aaf20fcdbcf4f (diff) | |
Don't access Config from the static creation of dcpomatic_log.
Diffstat (limited to 'src/lib/file_log.cc')
| -rw-r--r-- | src/lib/file_log.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/file_log.cc b/src/lib/file_log.cc index c2a33d425..be532c10f 100644 --- a/src/lib/file_log.cc +++ b/src/lib/file_log.cc @@ -20,6 +20,7 @@ #include "file_log.h" #include "cross.h" +#include "config.h" #include <cstdio> #include <iostream> @@ -32,7 +33,14 @@ using boost::shared_ptr; FileLog::FileLog (boost::filesystem::path file) : _file (file) { + _config_connection = Config::instance()->Changed.connect (boost::bind (&FileLog::config_changed, this)); + config_changed (); +} +void +FileLog::config_changed () +{ + set_types (Config::instance()->log_types ()); } void |
