aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2011-12-12 13:51:31 +0100
committerMelanie2011-12-12 13:51:31 +0100
commitafab4b276ebc87f70307ac65e158bb3489d7634b (patch)
tree46a4e4de797fe6cf59237a9eb590334600df82df /OpenSim
parentMerge branch 'master' of ssh://3dhosting.de/var/git/careminster (diff)
downloadopensim-SC-afab4b276ebc87f70307ac65e158bb3489d7634b.zip
opensim-SC-afab4b276ebc87f70307ac65e158bb3489d7634b.tar.gz
opensim-SC-afab4b276ebc87f70307ac65e158bb3489d7634b.tar.bz2
opensim-SC-afab4b276ebc87f70307ac65e158bb3489d7634b.tar.xz
Remove spammy log messages when querying sim health
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs8
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs16
2 files changed, 14 insertions, 10 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index 7a1956f..2930753 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -1724,8 +1724,6 @@ namespace OpenSim.ApplicationPlugins.RemoteController
1724 1724
1725 private void XmlRpcRegionQueryMethod(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient) 1725 private void XmlRpcRegionQueryMethod(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient)
1726 { 1726 {
1727 m_log.Info("[RADMIN]: Received Query XML Administrator Request");
1728
1729 Hashtable responseData = (Hashtable)response.Value; 1727 Hashtable responseData = (Hashtable)response.Value;
1730 Hashtable requestData = (Hashtable)request.Params[0]; 1728 Hashtable requestData = (Hashtable)request.Params[0];
1731 1729
@@ -1736,16 +1734,12 @@ namespace OpenSim.ApplicationPlugins.RemoteController
1736 UUID region_uuid = (UUID) (string) requestData["region_uuid"]; 1734 UUID region_uuid = (UUID) (string) requestData["region_uuid"];
1737 if (!m_application.SceneManager.TrySetCurrentScene(region_uuid)) 1735 if (!m_application.SceneManager.TrySetCurrentScene(region_uuid))
1738 throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString())); 1736 throw new Exception(String.Format("failed to switch to region {0}", region_uuid.ToString()));
1739
1740 m_log.InfoFormat("[RADMIN]: Switched to region {0}", region_uuid.ToString());
1741 } 1737 }
1742 else if (requestData.Contains("region_name")) 1738 else if (requestData.Contains("region_name"))
1743 { 1739 {
1744 string region_name = (string) requestData["region_name"]; 1740 string region_name = (string) requestData["region_name"];
1745 if (!m_application.SceneManager.TrySetCurrentScene(region_name)) 1741 if (!m_application.SceneManager.TrySetCurrentScene(region_name))
1746 throw new Exception(String.Format("failed to switch to region {0}", region_name)); 1742 throw new Exception(String.Format("failed to switch to region {0}", region_name));
1747
1748 m_log.InfoFormat("[RADMIN]: Switched to region {0}", region_name);
1749 } 1743 }
1750 else 1744 else
1751 { 1745 {
@@ -1760,8 +1754,6 @@ namespace OpenSim.ApplicationPlugins.RemoteController
1760 responseData["health"] = health; 1754 responseData["health"] = health;
1761 responseData["flags"] = flags; 1755 responseData["flags"] = flags;
1762 responseData["message"] = text; 1756 responseData["message"] = text;
1763
1764 m_log.Info("[RADMIN]: Query XML Administrator Request complete");
1765 } 1757 }
1766 1758
1767 private void XmlRpcConsoleCommandMethod(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient) 1759 private void XmlRpcConsoleCommandMethod(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient)
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index ad2192d..bfabcc2 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1171,8 +1171,8 @@ namespace OpenSim.Region.Framework.Scenes
1171 if(m_hbRestarts > 10) 1171 if(m_hbRestarts > 10)
1172 Environment.Exit(1); 1172 Environment.Exit(1);
1173 m_log.ErrorFormat("[SCENE]: Restarting heartbeat thread because it hasn't reported in in region {0}", RegionInfo.RegionName); 1173 m_log.ErrorFormat("[SCENE]: Restarting heartbeat thread because it hasn't reported in in region {0}", RegionInfo.RegionName);
1174 int pid = System.Diagnostics.Process.GetCurrentProcess().Id; 1174
1175 1175//int pid = System.Diagnostics.Process.GetCurrentProcess().Id;
1176//System.Diagnostics.Process proc = new System.Diagnostics.Process(); 1176//System.Diagnostics.Process proc = new System.Diagnostics.Process();
1177//proc.EnableRaisingEvents=false; 1177//proc.EnableRaisingEvents=false;
1178//proc.StartInfo.FileName = "/bin/kill"; 1178//proc.StartInfo.FileName = "/bin/kill";
@@ -4630,6 +4630,18 @@ namespace OpenSim.Region.Framework.Scenes
4630 health+=1; 4630 health+=1;
4631 flags |= 4; 4631 flags |= 4;
4632 } 4632 }
4633 else
4634 {
4635int pid = System.Diagnostics.Process.GetCurrentProcess().Id;
4636System.Diagnostics.Process proc = new System.Diagnostics.Process();
4637proc.EnableRaisingEvents=false;
4638proc.StartInfo.FileName = "/bin/kill";
4639proc.StartInfo.Arguments = "-QUIT " + pid.ToString();
4640proc.Start();
4641proc.WaitForExit();
4642Thread.Sleep(1000);
4643Environment.Exit(1);
4644 }
4633 4645
4634 if (flags != 7) 4646 if (flags != 7)
4635 return health; 4647 return health;