summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-12-03 01:28:56 +0100
committerCarl Hetherington <cth@carlh.net>2026-02-03 21:37:04 +0100
commit1ea118df7e34325ce3eec9fe4a7c9ecc9d48f770 (patch)
tree73b64731a4d60736bb57eebf5431152c5e95ce5e /src
parenteabbdd46a964eb9895682746aef4e5094e2243ca (diff)
Allow configuring of HTTP logging in the player.
Diffstat (limited to 'src')
-rw-r--r--src/wx/player_config_dialog.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wx/player_config_dialog.cc b/src/wx/player_config_dialog.cc
index 5c0a34940..36a114088 100644
--- a/src/wx/player_config_dialog.cc
+++ b/src/wx/player_config_dialog.cc
@@ -318,6 +318,8 @@ private:
/// TRANSLATORS: translate the word "Timing" here; do not include the "Config|" prefix
_log_timing = new CheckBox(_panel, S_("Config|Timing"));
t->Add(_log_timing, 1, wxEXPAND | wxALL);
+ _log_http = new CheckBox(_panel, _("HTTP"));
+ t->Add(_log_http, 1, wxEXPAND | wxALL);
_log_debug_video_view = new CheckBox(_panel, _("Debug: video view"));
t->Add(_log_debug_video_view, 1, wxEXPAND | wxALL);
_log_debug_player = new CheckBox(_panel, _("Debug: player"));
@@ -337,6 +339,7 @@ private:
_log_timing->bind(&PlayerAdvancedPage::log_changed, this);
_log_debug_video_view->bind(&PlayerAdvancedPage::log_changed, this);
_log_debug_player->bind(&PlayerAdvancedPage::log_changed, this);
+ _log_http->bind(&PlayerAdvancedPage::log_changed, this);
#ifdef DCPOMATIC_WINDOWS
_win32_console->bind(&PlayerAdvancedPage::win32_console_changed, this);
#endif
@@ -353,6 +356,7 @@ private:
checked_set(_log_timing, config->log_types() & LogEntry::TYPE_TIMING);
checked_set(_log_debug_video_view, config->log_types() & LogEntry::TYPE_DEBUG_VIDEO_VIEW);
checked_set(_log_debug_player, config->log_types() & LogEntry::TYPE_DEBUG_PLAYER);
+ checked_set(_log_http, config->log_types() & LogEntry::TYPE_HTTP);
#ifdef DCPOMATIC_WINDOWS
checked_set(_win32_console, config->win32_console());
#endif
@@ -383,6 +387,9 @@ private:
if (_log_debug_player->GetValue()) {
types |= LogEntry::TYPE_DEBUG_PLAYER;
}
+ if (_log_http->GetValue()) {
+ types |= LogEntry::TYPE_HTTP;
+ }
Config::instance()->set_log_types(types);
}
@@ -409,6 +416,7 @@ private:
CheckBox* _log_timing = nullptr;
CheckBox* _log_debug_video_view = nullptr;
CheckBox* _log_debug_player = nullptr;
+ CheckBox* _log_http = nullptr;
#ifdef DCPOMATIC_WINDOWS
CheckBox* _win32_console = nullptr;
#endif