Update call to logger to pass exception

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-12-06 20:21:12 -08:00
parent 3b01899bb1
commit 5f10d84ac2
2 changed files with 1 additions and 2 deletions

View File

@@ -3,7 +3,6 @@ using System.CodeDom;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using Orchard.Environment.Extensions.Loaders;
using Orchard.FileSystems.Dependencies;
using Orchard.FileSystems.VirtualPath;

View File

@@ -45,7 +45,7 @@ namespace Orchard.Environment {
_appDataFolder.CreateFile(fileName, "Host Restart");
}
catch(Exception e) {
Logger.Warning("Error updateting file '{0}': {1}", fileName, e.Message);
Logger.Warning(e, "Error updating file '{0}'", fileName);
}
}
}