Skip to content

Commit

Permalink
[peripherals/cec] changed make CEC log flood selectable
Browse files Browse the repository at this point in the history
CEC makes the debug log quite unreadable so make the CEC log flood selectable.
  • Loading branch information
huceke committed Oct 15, 2012
1 parent c4ed280 commit 572a786
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions language/English/strings.po
Expand Up @@ -10915,6 +10915,11 @@ msgctxt "#35101"
msgid "Disable joystick when iMON is present" msgid "Disable joystick when iMON is present"
msgstr "" msgstr ""


#: xbmc/settings/GUISettings.cpp
msgctxt "#35102"
msgid "Verbose CEC loging"
msgstr ""

#empty strings from id 35102 to 35499 #empty strings from id 35102 to 35499


msgctxt "#35500" msgctxt "#35500"
Expand Down
6 changes: 4 additions & 2 deletions xbmc/peripherals/devices/PeripheralCecAdapter.cpp
Expand Up @@ -1200,11 +1200,13 @@ int CPeripheralCecAdapter::CecLogMessage(void *cbParam, const cec_log_message me
iLevel = LOGWARNING; iLevel = LOGWARNING;
break; break;
case CEC_LOG_NOTICE: case CEC_LOG_NOTICE:
iLevel = LOGDEBUG; if(g_guiSettings.GetBool("input.verbosecec"))
iLevel = LOGINFO;
break; break;
case CEC_LOG_TRAFFIC: case CEC_LOG_TRAFFIC:
case CEC_LOG_DEBUG: case CEC_LOG_DEBUG:
iLevel = LOGDEBUG; if(g_guiSettings.GetBool("input.verbosecec"))
iLevel = LOGINFO;
break; break;
default: default:
break; break;
Expand Down
3 changes: 3 additions & 0 deletions xbmc/settings/GUISettings.cpp
Expand Up @@ -549,6 +549,9 @@ void CGUISettings::Initialize()
AddBool(in, "input.disablejoystickwithimon", 35101, true); AddBool(in, "input.disablejoystickwithimon", 35101, true);
GetSetting("input.disablejoystickwithimon")->SetVisible(false); GetSetting("input.disablejoystickwithimon")->SetVisible(false);
#endif #endif
#if defined(HAVE_LIBCEC)
AddBool(in, "input.verbosecec", 35102, false);
#endif


CSettingsCategory* net = AddCategory(SETTINGS_SYSTEM, "network", 798); CSettingsCategory* net = AddCategory(SETTINGS_SYSTEM, "network", 798);
if (g_application.IsStandAlone()) if (g_application.IsStandAlone())
Expand Down

0 comments on commit 572a786

Please sign in to comment.