* Assortment of Console changes - console messages are now grouped into modules (eg "client", "grid", "terrain", "storage", etc)
parent
f5b24b6679
commit
765ff13f22
|
@ -73,14 +73,18 @@ namespace OpenSim.Framework.Console
|
|||
Log.Close();
|
||||
}
|
||||
|
||||
[Obsolete("Log.WriteLine is obsolete, use Warn / Error / Verbose instead.")]
|
||||
public void Write(string format, params object[] args)
|
||||
{
|
||||
// HOUSEKEEPING : Will remove once use is removed.
|
||||
Notice(format, args);
|
||||
return;
|
||||
}
|
||||
|
||||
[Obsolete("Log.WriteLine is obsolete, use Warn / Error / Verbose instead.")]
|
||||
public void WriteLine(LogPriority importance, string format, params object[] args)
|
||||
{
|
||||
// HOUSEKEEPING : Will remove once use is removed.
|
||||
Log.WriteLine(format, args);
|
||||
Log.Flush();
|
||||
if (!m_silent)
|
||||
|
@ -249,6 +253,7 @@ namespace OpenSim.Framework.Console
|
|||
|
||||
private void WritePrefixLine(ConsoleColor color, string sender)
|
||||
{
|
||||
sender = sender.ToUpper();
|
||||
Log.WriteLine("[" + sender + "] ");
|
||||
Log.Flush();
|
||||
|
||||
|
|
|
@ -329,7 +329,7 @@ namespace OpenSim.Framework.Configuration
|
|||
}
|
||||
else
|
||||
{
|
||||
MainLog.Instance.Warn("Incorrect result given, the configuration option must be " + errorMessage + ". Prompting for same option...");
|
||||
MainLog.Instance.Warn("configuration","Incorrect result given, the configuration option must be " + errorMessage + ". Prompting for same option...");
|
||||
ignoreNextFromConfig = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -223,8 +223,6 @@ namespace OpenSim.Framework.UserManagement
|
|||
responseData["sim_port"] =(Int32) this.SimPort;
|
||||
responseData["sim_ip"] = this.SimAddress;
|
||||
|
||||
MainLog.Instance.Warn("SIM IP: " + responseData["sim_ip"] + "; SIM PORT: " + responseData["sim_port"]);
|
||||
|
||||
responseData["agent_id"] = this.AgentID.ToStringHyphenated();
|
||||
responseData["session_id"] = this.SessionID.ToStringHyphenated();
|
||||
responseData["secure_session_id"] = this.SecureSessionID.ToStringHyphenated();
|
||||
|
|
|
@ -158,13 +158,13 @@ namespace OpenSim.Grid.AssetServer
|
|||
try
|
||||
{
|
||||
db = Db4oFactory.OpenFile("gridassets.yap");
|
||||
MainLog.Instance.Verbose("Main.cs:setupDB() - creation");
|
||||
MainLog.Instance.Verbose("storage", "Main.cs:setupDB() - creation");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
db.Close();
|
||||
MainLog.Instance.Warn("Main.cs:setupDB() - Exception occured");
|
||||
MainLog.Instance.Warn(e.ToString());
|
||||
MainLog.Instance.Warn("storage", "Main.cs:setupDB() - Exception occured");
|
||||
MainLog.Instance.Warn("storage", e.ToString());
|
||||
}
|
||||
if (!yapfile)
|
||||
{
|
||||
|
|
|
@ -112,7 +112,7 @@ namespace OpenSim.Grid.GridServer
|
|||
}
|
||||
catch (Exception)
|
||||
{
|
||||
MainLog.Instance.Warn("Storage: unable to write log via " + kvp.Key);
|
||||
MainLog.Instance.Warn("storage", "Unable to write log via " + kvp.Key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ namespace OpenSim.Grid.GridServer
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MainLog.Instance.Warn("Message from Storage: " + e.Message);
|
||||
MainLog.Instance.Warn("storage", "getRegion - " + e.Message);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
@ -152,7 +152,7 @@ namespace OpenSim.Grid.GridServer
|
|||
}
|
||||
catch
|
||||
{
|
||||
MainLog.Instance.Warn("Storage: Unable to find region " + handle.ToString() + " via " + kvp.Key);
|
||||
MainLog.Instance.Warn("storage", "Unable to find region " + handle.ToString() + " via " + kvp.Key);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
@ -176,7 +176,7 @@ namespace OpenSim.Grid.GridServer
|
|||
}
|
||||
catch
|
||||
{
|
||||
MainLog.Instance.Warn("Storage: Unable to query regionblock via " + kvp.Key);
|
||||
MainLog.Instance.Warn("storage", "Unable to query regionblock via " + kvp.Key);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -288,24 +288,24 @@ namespace OpenSim.Grid.GridServer
|
|||
switch(insertResponse)
|
||||
{
|
||||
case DataResponse.RESPONSE_OK:
|
||||
OpenSim.Framework.Console.MainLog.Instance.Verbose("New sim creation successful: " + TheSim.regionName);
|
||||
OpenSim.Framework.Console.MainLog.Instance.Verbose("grid", "New sim creation successful: " + TheSim.regionName);
|
||||
break;
|
||||
case DataResponse.RESPONSE_ERROR:
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("New sim creation failed (Error): " + TheSim.regionName);
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("storage", "New sim creation failed (Error): " + TheSim.regionName);
|
||||
break;
|
||||
case DataResponse.RESPONSE_INVALIDCREDENTIALS:
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("New sim creation failed (Invalid Credentials): " + TheSim.regionName);
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("storage", "New sim creation failed (Invalid Credentials): " + TheSim.regionName);
|
||||
break;
|
||||
case DataResponse.RESPONSE_AUTHREQUIRED:
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("New sim creation failed (Authentication Required): " + TheSim.regionName);
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("storage", "New sim creation failed (Authentication Required): " + TheSim.regionName);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("Storage: Unable to add region " + TheSim.UUID.ToStringHyphenated() + " via " + kvp.Key);
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn(e.ToString());
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("storage", "Unable to add region " + TheSim.UUID.ToStringHyphenated() + " via " + kvp.Key);
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("storage", e.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -687,12 +687,12 @@ namespace OpenSim.Grid.GridServer
|
|||
if ((reserveData != null && reserveData.gridRecvKey == TheSim.regionRecvKey) || (reserveData == null && authkeynode.InnerText != TheSim.regionRecvKey))
|
||||
{
|
||||
kvp.Value.AddProfile(TheSim);
|
||||
MainLog.Instance.Verbose("New sim added to grid (" + TheSim.regionName + ")");
|
||||
MainLog.Instance.Verbose("grid", "New sim added to grid (" + TheSim.regionName + ")");
|
||||
logToDB(TheSim.UUID.ToStringHyphenated(), "RestSetSimMethod", "", 5, "Region successfully updated and connected to grid.");
|
||||
}
|
||||
else
|
||||
{
|
||||
MainLog.Instance.Warn("Unable to update region (RestSetSimMethod): Incorrect reservation auth key.");// Wanted: " + reserveData.gridRecvKey + ", Got: " + TheSim.regionRecvKey + ".");
|
||||
MainLog.Instance.Warn("grid", "Unable to update region (RestSetSimMethod): Incorrect reservation auth key.");// Wanted: " + reserveData.gridRecvKey + ", Got: " + TheSim.regionRecvKey + ".");
|
||||
return "Unable to update region (RestSetSimMethod): Incorrect auth key.";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -305,7 +305,7 @@ namespace OpenSim.Region.ClientStack
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MainLog.Instance.Warn("ClientView API.cs: SendLayerData() - Failed with exception " + e.ToString());
|
||||
MainLog.Instance.Warn("client", "ClientView API.cs: SendLayerData() - Failed with exception " + e.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -331,7 +331,7 @@ namespace OpenSim.Region.ClientStack
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MainLog.Instance.Warn("ClientView API .cs: SendLayerData() - Failed with exception " + e.ToString());
|
||||
MainLog.Instance.Warn("client", "ClientView API .cs: SendLayerData() - Failed with exception " + e.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ namespace OpenSim.Region.ClientStack
|
|||
}
|
||||
catch (Exception)
|
||||
{
|
||||
MainLog.Instance.Warn("OpenSimClient.cs:ProcessOutPacket() - WARNING: Socket exception occurred on connection " + userEP.ToString() + " - killing thread");
|
||||
MainLog.Instance.Warn("client", "OpenSimClient.cs:ProcessOutPacket() - WARNING: Socket exception occurred on connection " + userEP.ToString() + " - killing thread");
|
||||
this.KillThread();
|
||||
}
|
||||
|
||||
|
|
|
@ -122,7 +122,7 @@ namespace OpenSim.Region.ClientStack
|
|||
}
|
||||
else
|
||||
{ // invalid client
|
||||
m_log.Warn("UDPServer.cs:OnReceivedData() - WARNING: Got a packet from an invalid client - " + epSender.ToString());
|
||||
m_log.Warn("client", "UDPServer.cs:OnReceivedData() - WARNING: Got a packet from an invalid client - " + epSender.ToString());
|
||||
}
|
||||
|
||||
Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null);
|
||||
|
|
|
@ -256,7 +256,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
else
|
||||
{
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("Attempted to duplicate nonexistant prim");
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("client", "Attempted to duplicate nonexistant prim");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -248,7 +248,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MainLog.Instance.Warn("World.cs: Update() - Failed with exception " + e.ToString());
|
||||
MainLog.Instance.Warn("scene", "World.cs: Update() - Failed with exception " + e.ToString());
|
||||
}
|
||||
updateLock.ReleaseMutex();
|
||||
}
|
||||
|
@ -295,7 +295,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MainLog.Instance.Warn("World.cs: RegenerateTerrain() - Failed with exception " + e.ToString());
|
||||
MainLog.Instance.Warn("terrain", "World.cs: RegenerateTerrain() - Failed with exception " + e.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -326,7 +326,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MainLog.Instance.Warn("World.cs: RegenerateTerrain() - Failed with exception " + e.ToString());
|
||||
MainLog.Instance.Warn("terrain", "World.cs: RegenerateTerrain() - Failed with exception " + e.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -352,7 +352,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MainLog.Instance.Warn("World.cs: RegenerateTerrain() - Failed with exception " + e.ToString());
|
||||
MainLog.Instance.Warn("terrain", "World.cs: RegenerateTerrain() - Failed with exception " + e.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -402,7 +402,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MainLog.Instance.Warn("World.cs: LoadWorldMap() - Failed with exception " + e.ToString());
|
||||
MainLog.Instance.Warn("terrain", "World.cs: LoadWorldMap() - Failed with exception " + e.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -784,7 +784,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
cap.RegisterHandlers();
|
||||
if (capsHandlers.ContainsKey(agent.AgentID))
|
||||
{
|
||||
MainLog.Instance.Warn("Adding duplicate CAPS entry for user " +
|
||||
MainLog.Instance.Warn("client", "Adding duplicate CAPS entry for user " +
|
||||
agent.AgentID.ToStringHyphenated());
|
||||
capsHandlers[agent.AgentID] = cap;
|
||||
}
|
||||
|
|
|
@ -76,14 +76,14 @@ namespace OpenSim.Region.Scripting
|
|||
Vector myPosition = Task.Pos;
|
||||
Land myParcel = World.LandManager.getLandObject(myPosition.X, myPosition.Y);
|
||||
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("Unimplemented function called by script: osAddToLandPassList(Key avatar, float hours)");
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("script", "Unimplemented function called by script: osAddToLandPassList(Key avatar, float hours)");
|
||||
return;
|
||||
}
|
||||
|
||||
[Obsolete("Unimplemented")]
|
||||
public void osAdjustSoundVolume(float volume)
|
||||
{
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("Unimplemented function called by script: osAdjustSoundVolume(float volume)");
|
||||
OpenSim.Framework.Console.MainLog.Instance.Warn("script", "Unimplemented function called by script: osAdjustSoundVolume(float volume)");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue