Fixed exception logging in Orchard.MessageBus.

This commit is contained in:
Daniel Stolt
2015-02-04 15:48:27 +01:00
parent 2acd73c18d
commit dd2fb47cdb
2 changed files with 4 additions and 4 deletions
@@ -63,7 +63,7 @@ namespace Orchard.MessageBus.Brokers.SqlServer {
_initialized = true;
}
catch (Exception e) {
Logger.Error("The application doesn't have the permission to request notifications.", e);
Logger.Error(e, "The application doesn't have the permission to request notifications.");
}
}
@@ -82,7 +82,7 @@ namespace Orchard.MessageBus.Brokers.SqlServer {
}
}
catch(Exception e) {
Logger.Error("An error occured while creating a Worker.", e);
Logger.Error(e, "An error occured while creating a Worker.");
}
}
@@ -72,7 +72,7 @@ namespace Orchard.MessageBus.Brokers.SqlServer {
}
catch (Exception e) {
Logger.Error("An unexpected error occured while monitoring sql dependencies.", e);
Logger.Error(e, "An unexpected error occured while monitoring sql dependencies.");
}
}
@@ -188,7 +188,7 @@ namespace Orchard.MessageBus.Brokers.SqlServer {
}
}
catch (Exception e) {
Logger.Error("Could not retreive Sql Broker messages.", e);
Logger.Error(e, "Could not retreive Sql Broker messages.");
return Enumerable.Empty<MessageRecord>();
}