aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-04-09 23:02:11 +0100
committerJustin Clark-Casey (justincc)2013-04-09 23:02:11 +0100
commit8690a08881d41c285dd830b4b1646eb116ad098d (patch)
treea1092c8de2a080b819c6848ecbaa97d0728e4690 /OpenSim
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-8690a08881d41c285dd830b4b1646eb116ad098d.zip
opensim-SC_OLD-8690a08881d41c285dd830b4b1646eb116ad098d.tar.gz
opensim-SC_OLD-8690a08881d41c285dd830b4b1646eb116ad098d.tar.bz2
opensim-SC_OLD-8690a08881d41c285dd830b4b1646eb116ad098d.tar.xz
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.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs7
1 files changed, 6 insertions, 1 deletions
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
520 { 520 {
521 File.Delete(savedState); 521 File.Delete(savedState);
522 } 522 }
523 catch(Exception) 523 catch (Exception e)
524 { 524 {
525 m_log.Warn(
526 string.Format(
527 "[SCRIPT INSTANCE]: Could not delete script state {0} for script {1} (id {2}) in part {3} (id {4}) in object {5} in {6}. Exception ",
528 ScriptTask.Name, ScriptTask.ItemID, Part.Name, Part.UUID, Part.ParentGroup.Name, Engine.World.Name),
529 e);
525 } 530 }
526 } 531 }
527 532