Skip to content

Commit

Permalink
Change startup issue log statements from Debug to Error, fixes #157
Browse files Browse the repository at this point in the history
  • Loading branch information
phunkyfish committed Jan 2, 2019
1 parent a794216 commit c95463e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
12 changes: 12 additions & 0 deletions pvr.vuplus/resources/language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -482,3 +482,15 @@ msgstr ""
msgctxt "#30514"
msgid "Timeshift buffer path does not exist"
msgstr ""

msgctxt "#30515"
msgid "Enigma2: Could not reach web interface"
msgstr ""

msgctxt "#30516"
msgid "Enigma2: No channel groups found"
msgstr ""

msgctxt "#30517"
msgid "Enigma2: No channels found"
msgstr ""
12 changes: 11 additions & 1 deletion src/Enigma2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ bool Enigma2::Open()
if (!m_isConnected)
{
Logger::Log(LEVEL_ERROR, "%s It seem's that the webinterface cannot be reached. Make sure that you set the correct configuration options in the addon settings!", __FUNCTION__);
XBMC->QueueNotification(QUEUE_ERROR, LocalizedString(30515).c_str());
return false;
}

Expand All @@ -113,11 +114,20 @@ bool Enigma2::Open()
{
// Load the TV channels - close connection if no channels are found
if (!m_channelGroups.LoadChannelGroups())
{
Logger::Log(LEVEL_ERROR, "%s No channel groups (bouquets) found, please check the addon channel settings, exiting", __FUNCTION__);
XBMC->QueueNotification(QUEUE_ERROR, LocalizedString(30516).c_str());

return false;
}

if (!m_channels.LoadChannels(m_channelGroups))
return false;
{
Logger::Log(LEVEL_ERROR, "%s No channels found, please check the addon channel settings, exiting", __FUNCTION__);
XBMC->QueueNotification(QUEUE_ERROR, LocalizedString(30517).c_str());

return false;
}
}
m_timers.AddTimerChangeWatcher(&m_dueRecordingUpdate);
m_timers.TimerUpdates();
Expand Down

0 comments on commit c95463e

Please sign in to comment.