* Reduced a significant number of compiler warnings (back down to 9 for all projects combined, all 'never used' things)
parent
87bddd32df
commit
3cbc1e011d
|
@ -54,7 +54,7 @@ namespace OpenSim.Framework.Configuration.HTTP
|
|||
while (count > 0);
|
||||
LoadDataFromString(sb.ToString());
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (WebException)
|
||||
{
|
||||
Console.MainLog.Instance.Warn("Unable to connect to remote configuration file (" + remoteConfigSettings.baseConfigURL + configFileName + "). Creating local file instead.");
|
||||
xmlConfig.SetFileName(configFileName);
|
||||
|
|
|
@ -344,7 +344,7 @@ namespace OpenSim.Framework.Console
|
|||
{
|
||||
// FIXME: Needs to be better abstracted
|
||||
Log.WriteLine(prompt);
|
||||
this.Write(prompt);
|
||||
this.Notice(prompt);
|
||||
ConsoleColor oldfg = System.Console.ForegroundColor;
|
||||
System.Console.ForegroundColor = System.Console.BackgroundColor;
|
||||
string temp = System.Console.ReadLine();
|
||||
|
@ -355,7 +355,7 @@ namespace OpenSim.Framework.Console
|
|||
// Displays a command prompt and waits for the user to enter a string, then returns that string
|
||||
public string CmdPrompt(string prompt)
|
||||
{
|
||||
this.Write(String.Format("{0}: ", prompt));
|
||||
this.Notice(String.Format("{0}: ", prompt));
|
||||
return this.ReadLine();
|
||||
}
|
||||
|
||||
|
|
|
@ -185,7 +185,7 @@ namespace OpenSim.Framework.Servers
|
|||
|
||||
public void Start()
|
||||
{
|
||||
MainLog.Instance.WriteLine(LogPriority.LOW, "BaseHttpServer.cs: Starting up HTTP Server");
|
||||
MainLog.Instance.Verbose("HTTPD", "BaseHttpServer.cs: Starting up HTTP Server");
|
||||
|
||||
m_workerThread = new Thread(new ThreadStart(StartHTTP));
|
||||
m_workerThread.IsBackground = true;
|
||||
|
@ -196,7 +196,7 @@ namespace OpenSim.Framework.Servers
|
|||
{
|
||||
try
|
||||
{
|
||||
MainLog.Instance.WriteLine(LogPriority.LOW, "BaseHttpServer.cs: StartHTTP() - Spawned main thread OK");
|
||||
MainLog.Instance.Status("HTTPD", "BaseHttpServer.cs: StartHTTP() - Spawned main thread OK");
|
||||
m_httpListener = new HttpListener();
|
||||
|
||||
m_httpListener.Prefixes.Add("http://+:" + m_port + "/");
|
||||
|
@ -211,7 +211,7 @@ namespace OpenSim.Framework.Servers
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MainLog.Instance.WriteLine(LogPriority.MEDIUM, e.Message);
|
||||
MainLog.Instance.Warn("HTTPD", "Error - " + e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -257,8 +257,8 @@ namespace OpenSim.Framework.UserManagement
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MainLog.Instance.WriteLine(
|
||||
LogPriority.LOW,
|
||||
MainLog.Instance.Warn(
|
||||
"CLIENT",
|
||||
"LoginResponse: Error creating XML-RPC Response: " + e.Message
|
||||
);
|
||||
return (this.GenerateFailureResponse("Internal Error", "Error generating Login Response", "false"));
|
||||
|
|
|
@ -43,7 +43,6 @@ namespace OpenSim.Grid.GridServer
|
|||
/// </summary>
|
||||
public class OpenGrid_Main : conscmd_callback
|
||||
{
|
||||
private string GridDll = "OpenSim.Framework.Data.MySQL.dll";
|
||||
public GridConfig Cfg;
|
||||
|
||||
public static OpenGrid_Main thegrid;
|
||||
|
|
|
@ -43,7 +43,6 @@ namespace OpenSim.Grid.UserServer
|
|||
/// </summary>
|
||||
public class OpenUser_Main : conscmd_callback
|
||||
{
|
||||
private string StorageDll = "OpenSim.Framework.Data.MySQL.dll";
|
||||
private UserConfig Cfg;
|
||||
|
||||
public UserManager m_userManager;
|
||||
|
|
|
@ -145,7 +145,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MainLog.Instance.WriteLine(LogPriority.HIGH, "World.cs: Close() - Failed with exception " + e.ToString());
|
||||
MainLog.Instance.Error("SCENE", "World.cs: Close() - Failed with exception " + e.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ namespace SimpleApp
|
|||
scene.AddEntity(fileObject);
|
||||
}
|
||||
|
||||
m_log.WriteLine(LogPriority.NORMAL, "Press enter to quit.");
|
||||
m_log.Notice("Press enter to quit.");
|
||||
m_log.ReadLine();
|
||||
}
|
||||
|
||||
|
|
|
@ -54,12 +54,12 @@ namespace OpenSim.Physics.Manager
|
|||
|
||||
if(_plugins.ContainsKey(engineName))
|
||||
{
|
||||
MainLog.Instance.WriteLine(LogPriority.LOW,"creating "+engineName);
|
||||
MainLog.Instance.Verbose("PHYSICS","creating "+engineName);
|
||||
return _plugins[engineName].GetScene();
|
||||
}
|
||||
else
|
||||
{
|
||||
MainLog.Instance.WriteLine(LogPriority.MEDIUM,"couldn't find physicsEngine: {0}",engineName);
|
||||
MainLog.Instance.Warn("PHYSICS", "couldn't find physicsEngine: {0}", engineName);
|
||||
throw new ArgumentException(String.Format("couldn't find physicsEngine: {0}",engineName));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue