mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
Make log output of remote admin's restart region call reflect restart cancellations properly.
This commit is contained in:
@@ -271,8 +271,6 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||
|
||||
try
|
||||
{
|
||||
m_log.Info("[RADMIN]: Request to restart Region.");
|
||||
|
||||
Scene rebootedScene = null;
|
||||
bool restartAll = false;
|
||||
|
||||
@@ -307,6 +305,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||
string[] alertTimes = requestData["alerts"].ToString().Split( new char[] {','});
|
||||
if (alertTimes.Length == 1 && Convert.ToInt32(alertTimes[0]) == -1)
|
||||
{
|
||||
m_log.Info("[RADMIN]: Request to cancel restart.");
|
||||
|
||||
if (restartModule != null)
|
||||
{
|
||||
message = "Restart has been cancelled";
|
||||
@@ -342,6 +342,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||
}
|
||||
}
|
||||
|
||||
m_log.Info("[RADMIN]: Request to restart Region.");
|
||||
|
||||
message = "Region is restarting in {0}. Please save what you are doing and log out.";
|
||||
|
||||
if (requestData.ContainsKey("message"))
|
||||
|
||||
Reference in New Issue
Block a user