From 8690a08881d41c285dd830b4b1646eb116ad098d Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Tue, 9 Apr 2013 23:02:11 +0100 Subject: minor: Log an exception if we aren't able to delete a script state file rather than simply ignoring it. This should never normally happen but if it does then it can be valuable diagonstic information. --- OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index bf19a42..1e6db43 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs @@ -520,8 +520,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance { File.Delete(savedState); } - catch(Exception) + catch (Exception e) { + m_log.Warn( + string.Format( + "[SCRIPT INSTANCE]: Could not delete script state {0} for script {1} (id {2}) in part {3} (id {4}) in object {5} in {6}. Exception ", + ScriptTask.Name, ScriptTask.ItemID, Part.Name, Part.UUID, Part.ParentGroup.Name, Engine.World.Name), + e); } } -- cgit v1.1