diff options
author | Melanie Thielker | 2015-03-23 22:16:49 +0100 |
---|---|---|
committer | Melanie Thielker | 2015-03-23 22:16:49 +0100 |
commit | 5cb8127e8745d6d89f9b748fecefbeb8a43da60e (patch) | |
tree | f94be808efae52897ea4c69b8bf75eb9cadbe001 /OpenSim/ApplicationPlugins | |
parent | Taking a reference to the value collection is not thread safe. Change this (diff) | |
download | opensim-SC-5cb8127e8745d6d89f9b748fecefbeb8a43da60e.zip opensim-SC-5cb8127e8745d6d89f9b748fecefbeb8a43da60e.tar.gz opensim-SC-5cb8127e8745d6d89f9b748fecefbeb8a43da60e.tar.bz2 opensim-SC-5cb8127e8745d6d89f9b748fecefbeb8a43da60e.tar.xz |
Make log output of remote admin's restart region call reflect restart cancellations properly.
Diffstat (limited to 'OpenSim/ApplicationPlugins')
-rw-r--r-- | OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index 2120116..e71e81c 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | |||
@@ -271,8 +271,6 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
271 | 271 | ||
272 | try | 272 | try |
273 | { | 273 | { |
274 | m_log.Info("[RADMIN]: Request to restart Region."); | ||
275 | |||
276 | Scene rebootedScene = null; | 274 | Scene rebootedScene = null; |
277 | bool restartAll = false; | 275 | bool restartAll = false; |
278 | 276 | ||
@@ -307,6 +305,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
307 | string[] alertTimes = requestData["alerts"].ToString().Split( new char[] {','}); | 305 | string[] alertTimes = requestData["alerts"].ToString().Split( new char[] {','}); |
308 | if (alertTimes.Length == 1 && Convert.ToInt32(alertTimes[0]) == -1) | 306 | if (alertTimes.Length == 1 && Convert.ToInt32(alertTimes[0]) == -1) |
309 | { | 307 | { |
308 | m_log.Info("[RADMIN]: Request to cancel restart."); | ||
309 | |||
310 | if (restartModule != null) | 310 | if (restartModule != null) |
311 | { | 311 | { |
312 | message = "Restart has been cancelled"; | 312 | message = "Restart has been cancelled"; |
@@ -342,6 +342,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
342 | } | 342 | } |
343 | } | 343 | } |
344 | 344 | ||
345 | m_log.Info("[RADMIN]: Request to restart Region."); | ||
346 | |||
345 | message = "Region is restarting in {0}. Please save what you are doing and log out."; | 347 | message = "Region is restarting in {0}. Please save what you are doing and log out."; |
346 | 348 | ||
347 | if (requestData.ContainsKey("message")) | 349 | if (requestData.ContainsKey("message")) |