Report command string on ConsoleBase.RunCommand exception
parent
07774473af
commit
c66b5a9e71
|
@ -246,7 +246,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Synchronously retreive an asset. If the asset isn't in the cache, a request will be made to the persistent store to
|
/// Synchronously retreive an asset. If the asset isn't in the cache, a request will be made to the persistent store to
|
||||||
/// load it into the cache.
|
/// load it into the cache.
|
||||||
///
|
///
|
||||||
/// XXX We'll keep polling the cache until we get the asset or we exceed
|
/// XXX We'll keep polling the cache until we get the asset or we exceed
|
||||||
|
@ -489,7 +489,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Notify callers
|
// Notify requesters for this asset
|
||||||
lock (RequestLists)
|
lock (RequestLists)
|
||||||
{
|
{
|
||||||
AssetRequestsList reqList = RequestLists[assetID];
|
AssetRequestsList reqList = RequestLists[assetID];
|
||||||
|
|
|
@ -376,13 +376,14 @@ namespace OpenSim.Framework.Console
|
||||||
Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1);
|
Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1);
|
||||||
Array.Reverse(tempstrarray);
|
Array.Reverse(tempstrarray);
|
||||||
string[] cmdparams = (string[]) tempstrarray;
|
string[] cmdparams = (string[]) tempstrarray;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
RunCmd(cmd, cmdparams);
|
RunCmd(cmd, cmdparams);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
m_log.Error("[Console]: Command failed with exception " + e.ToString());
|
m_log.ErrorFormat("[Console]: Command [{0}] failed with exception {1}", command, e.ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue