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.
user_profiles
Justin Clark-Casey (justincc) 2013-04-09 23:02:11 +01:00
parent aab2b032aa
commit 8690a08881
1 changed files with 6 additions and 1 deletions

View File

@ -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);
}
}