Remove "Asset deletion not supported by database" message from "delete asset" robust/standalone console command since it actually was implemented and performed.
Improve other associated messages.cpu-performance
parent
dc0455e217
commit
e26e8b8829
|
@ -119,16 +119,14 @@ namespace OpenSim.Server.Handlers.Asset
|
||||||
|
|
||||||
if (asset == null || asset.Data.Length == 0)
|
if (asset == null || asset.Data.Length == 0)
|
||||||
{
|
{
|
||||||
MainConsole.Instance.Output("Asset not found");
|
MainConsole.Instance.OutputFormat("Could not find asset with ID {0}", args[2]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_AssetService.Delete(args[2]);
|
if (!m_AssetService.Delete(asset.ID))
|
||||||
|
MainConsole.Instance.OutputFormat("ERROR: Could not delete asset {0} {1}", asset.ID, asset.Name);
|
||||||
//MainConsole.Instance.Output("Asset deleted");
|
else
|
||||||
// TODO: Implement this
|
MainConsole.Instance.OutputFormat("Deleted asset {0} {1}", asset.ID, asset.Name);
|
||||||
|
|
||||||
MainConsole.Instance.Output("Asset deletion not supported by database");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void HandleDumpAsset(string module, string[] args)
|
void HandleDumpAsset(string module, string[] args)
|
||||||
|
|
Loading…
Reference in New Issue