* Reduced a significant number of compiler warnings (back down to 9 for all projects combined, all 'never used' things)

This commit is contained in:
Adam Frisby
2007-07-24 03:59:32 +00:00
parent 87bddd32df
commit 3cbc1e011d
9 changed files with 12 additions and 14 deletions

View File

@@ -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);

View File

@@ -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();
}

View File

@@ -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);
}
}

View File

@@ -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"));