This instance will be upgraded to Heptapod 0.23.2 on 2021-08-05 at 11:00 UTC+2 (a few minutes of down time)

Commit 92db30df authored by Alexab's avatar Alexab
Browse files

Improved usability of the logging subsystem.

--HG--
branch : MockCompsTest
parent ccee8951babe
......@@ -161,7 +161,7 @@ int UAppCore<ApplicationT, EngineControlT, ProjectT, ServerControlT, TestManager
RDK::Sleep(startupDelay);
}
logDebugMode=atoi(projectIniFile("Log","DebugMode","1"));
logDebugMode=atoi(projectIniFile("Log","DebugMode","0"));
disableAdminForm=atoi(projectIniFile("General","DisableAdminForm","0"));
std::string temp_proj_path = projectIniFile("General", "TemporaryProjectPath", "");
......
......@@ -1369,7 +1369,7 @@ bool UApplication::OpenProject(const std::string &filename)
return false;
}
MLog_LogMessage(RDK_SYS_MESSAGE,RDK_EX_DEBUG, (std::string("Open project ")+filename+"...").c_str());
MLog_LogMessage(RDK_SYS_MESSAGE,RDK_EX_INFO, (std::string("Open configuration ")+filename+"...").c_str());
ProjectPath=extract_file_path(filename);
ProjectFileName=extract_file_name(filename);
Project->SetProjectPath(ProjectPath);
......@@ -1540,7 +1540,7 @@ catch(RDK::UException &exception)
SaveProjectsHistory();
MLog_LogMessage(RDK_SYS_MESSAGE,RDK_EX_DEBUG, (std::string("Project ")+filename+" has been opened successfully.").c_str());
MLog_LogMessage(RDK_SYS_MESSAGE,RDK_EX_INFO, (std::string("Configuration ")+filename+" has been opened.").c_str());
return true;
}
......@@ -1626,7 +1626,12 @@ try
is_saved=ProjectXml.SaveToFile(ProjectPath+ProjectFileName);
if(!is_saved)
MLog_LogMessage(RDK_SYS_MESSAGE, RDK_EX_ERROR, (std::string("Core-SaveProject: Can't save project config file: ")+ProjectFileName).c_str());
MLog_LogMessage(RDK_SYS_MESSAGE, RDK_EX_ERROR, (std::string("Core-SaveProject: Can't save configuration: ")+ProjectFileName).c_str());
else
{
std::string filename=ProjectPath+ProjectFileName;
MLog_LogMessage(RDK_SYS_MESSAGE,RDK_EX_INFO, (std::string("Configuration ")+filename+" has been saved.").c_str());
}
}
catch(RDK::UException &exception)
{
......@@ -1654,6 +1659,9 @@ bool UApplication::CloseProject(void)
if(config.ProjectAutoSaveFlag)
SaveProject();
std::string filename=ProjectPath+ProjectFileName;
RDK::UIVisualControllerStorage::ClearInterface();
// if(UServerControlForm)
// UServerControlForm->ServerRestartTimer->Enabled=false;
......@@ -1678,6 +1686,7 @@ bool UApplication::CloseProject(void)
Storage_FreeObjectsStorage();
}
MLog_LogMessage(RDK_SYS_MESSAGE,RDK_EX_INFO, (std::string("Configuration ")+filename+" has been closed.").c_str());
return true;
}
......
......@@ -28,12 +28,12 @@ URdkCoreManager::URdkCoreManager(void)
DebugMode=false;
BufObjectsMode=1;
GlobalLogger.SetChannelIndex(RDK_GLOB_MESSAGE);
GlobalLogger.SetDebugMode(true);
GlobalLogger.SetDebugMode(DebugMode);
GlobalLogger.SetDebuggerMessageFlag(false);
GlobalLogger.SetEventsLogMode(true);
SystemLogger.RegisterGlobalLogger(&GlobalLogger);
SystemLogger.SetChannelIndex(RDK_SYS_MESSAGE);
SystemLogger.SetDebugMode(true);
SystemLogger.SetDebugMode(DebugMode);
SystemLogger.SetDebuggerMessageFlag(false);
StorageBuildMode = 1;
......
......@@ -406,6 +406,7 @@ void UGEngineControllWidget::actionCloseConfig()
{
application->PauseChannel(-1);
application->CloseProject();
RDK::UIVisualControllerStorage::UpdateInterface(true);
}
catch(RDK::UException& e)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment