minor: Add some console feedback on region restart and log who requested a region restart if done from the viewer.
parent
2271986396
commit
49307ab4d1
|
@ -259,6 +259,10 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
}
|
}
|
||||||
|
|
||||||
restartModule.ScheduleRestart(UUID.Zero, "Region will restart in {0}", times.ToArray(), true);
|
restartModule.ScheduleRestart(UUID.Zero, "Region will restart in {0}", times.ToArray(), true);
|
||||||
|
|
||||||
|
m_log.InfoFormat(
|
||||||
|
"User {0} requested restart of region {1} in {2} seconds",
|
||||||
|
remoteClient.Name, Scene.Name, times.Count != 0 ? times[0] : 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
@ -264,6 +265,9 @@ namespace OpenSim.Region.CoreModules.World.Region
|
||||||
for (int i = 4 ; i < args.Length ; i++)
|
for (int i = 4 ; i < args.Length ; i++)
|
||||||
times.Add(Convert.ToInt32(args[i]));
|
times.Add(Convert.ToInt32(args[i]));
|
||||||
|
|
||||||
|
MainConsole.Instance.OutputFormat(
|
||||||
|
"Region {0} scheduled for restart in {1} seconds", m_Scene.Name, times.Sum());
|
||||||
|
|
||||||
ScheduleRestart(UUID.Zero, args[3], times.ToArray(), notice);
|
ScheduleRestart(UUID.Zero, args[3], times.ToArray(), notice);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue