Permalink
Browse files

[droid] fix uninit'd loglevel

  • Loading branch information...
Cory Fields
Cory Fields committed Jul 9, 2012
1 parent 4a6c652 commit 1f91b8d0fc53beb8d94d6fce96c84aaf98f4dfc9
Showing with 9 additions and 0 deletions.
  1. +9 −0 xbmc/xbmc.cpp
View
@@ -26,7 +26,16 @@ extern "C" int XBMC_Run(bool renderGUI)
int status = -1;
if (!g_advancedSettings.Initialized())
+ {
+#ifdef _DEBUG
+ g_advancedSettings.m_logLevel = LOG_LEVEL_DEBUG;
+ g_advancedSettings.m_logLevelHint = LOG_LEVEL_DEBUG;
+#else
+ g_advancedSettings.m_logLevel = LOG_LEVEL_NORMAL;
+ g_advancedSettings.m_logLevelHint = LOG_LEVEL_NORMAL;
+#endif
g_advancedSettings.Initialize();
+ }
if (!g_application.Create())
{

0 comments on commit 1f91b8d

Please sign in to comment.