diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-02 00:39:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-02 00:39:36 +0100 |
| commit | 7bf9cf9c047a2df19e19d557a86f34585453660d (patch) | |
| tree | 66cc1bb628f41ef49620b441b0f14b126b54857d /src/lib/config.cc | |
| parent | 7a9d77bc3573d85a5066e3472ae15b8b700a226c (diff) | |
Add KDM debug log file option.
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index dc33b26bc..f298c587b 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -191,6 +191,7 @@ Config::set_defaults() _video_view_type = VIDEO_VIEW_SIMPLE; _respect_kdm_validity_periods = true; _player_debug_log_file = boost::none; + _kdm_debug_log_file = boost::none; _player_content_directory = boost::none; _player_playlist_directory = boost::none; _player_kdm_directory = boost::none; @@ -616,6 +617,7 @@ try } _respect_kdm_validity_periods = f.optional_bool_child("RespectKDMValidityPeriods").get_value_or(true); _player_debug_log_file = f.optional_string_child("PlayerDebugLogFile"); + _kdm_debug_log_file = f.optional_string_child("KDMDebugLogFile"); _player_content_directory = f.optional_string_child("PlayerContentDirectory"); _player_playlist_directory = f.optional_string_child("PlayerPlaylistDirectory"); _player_kdm_directory = f.optional_string_child("PlayerKDMDirectory"); @@ -1089,6 +1091,10 @@ Config::write_config() const /* [XML] PlayerLogFile Filename to use for player debug logs. */ cxml::add_text_child(root, "PlayerDebugLogFile", _player_debug_log_file->string()); } + if (_kdm_debug_log_file) { + /* [XML] KDMLogFile Filename to use for KDM creator debug logs. */ + cxml::add_text_child(root, "KDMDebugLogFile", _kdm_debug_log_file->string()); + } if (_player_content_directory) { /* [XML] PlayerContentDirectory Directory to use for player content in the dual-screen mode. */ cxml::add_text_child(root, "PlayerContentDirectory", _player_content_directory->string()); |
