Commit c4e3830f authored by Sylvain Berfini's avatar Sylvain Berfini

Set debug value to Message by default

parent 5e2d89c4
......@@ -62,7 +62,8 @@ namespace Linphone.Agents
{
// Initiate incoming call processing by creating the Linphone Core
LpConfig config = OopServer.LinphoneCoreFactory.CreateLpConfig(ApplicationData.Current.LocalFolder.Path + "\\linphonerc", "Assets/linphonerc-factory");
OopServer.LinphoneCoreFactory.SetLogLevel((OutputTraceLevel) config.GetInt("app", "LogLevel", 255)); //255 is None
OutputTraceLevel level = (OutputTraceLevel)config.GetInt("app", "LogLevel", 1); //1 is Message
OopServer.LinphoneCoreFactory.SetLogLevel(level);
OopServer.LinphoneCoreFactory.CreateLinphoneCore(null, config);
OopServer.LinphoneCore.SetRootCA("Assets/rootca.pem");
OopServer.LinphoneCore.SetChatDatabasePath(ApplicationData.Current.LocalFolder.Path + "\\chat.db");
......
......@@ -44,7 +44,8 @@ namespace Linphone.Agents
{
var server = BackgroundManager.Instance.OopServer;
LpConfig config = server.LinphoneCoreFactory.CreateLpConfig(ApplicationData.Current.LocalFolder.Path + "\\linphonerc", "Assets/linphonerc-factory");
server.LinphoneCoreFactory.SetLogLevel((OutputTraceLevel)config.GetInt("app", "LogLevel", 255)); //255 is None
OutputTraceLevel level = (OutputTraceLevel)config.GetInt("app", "LogLevel", 1); //1 is Message
server.LinphoneCoreFactory.SetLogLevel(level);
server.LinphoneCoreFactory.CreateLinphoneCore(this, config);
server.LinphoneCore.SetRootCA("Assets/rootca.pem");
server.LinphoneCore.SetChatDatabasePath(ApplicationData.Current.LocalFolder.Path + "\\chat.db");
......
......@@ -266,7 +266,7 @@ namespace Linphone.Model
{
get
{
return Convert.ToInt32(Get(LogLevelKeyName)) != (int)OutputTraceLevel.None;
return Convert.ToInt32(Get(LogLevelKeyName)) == (int)OutputTraceLevel.Message;
}
set
{
......
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