[smuxi] Engine: aid diagnostics when a message buffer throws an exception
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi] Engine: aid diagnostics when a message buffer throws an exception
- Date: Wed, 3 Sep 2014 17:35:42 +0000 (UTC)
commit 63b6926e52f92ab52bca2395c7ab9225da619d45
Author: Mirco Bauer <meebey meebey net>
Date: Wed Sep 3 19:33:30 2014 +0200
Engine: aid diagnostics when a message buffer throws an exception
src/Engine/Session.cs | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/Engine/Session.cs b/src/Engine/Session.cs
index 1ec86b9..9a7fe9e 100644
--- a/src/Engine/Session.cs
+++ b/src/Engine/Session.cs
@@ -1293,10 +1293,12 @@ namespace Smuxi.Engine
} catch (Exception ex) {
#if LOG4NET
Trace.Call(chat, msg, ignoreFilters);
- f_Logger.Error(
- "AddMessageToChat(): " +
- "chat.MessageBuffer.Add() threw exception!", ex
+ f_Logger.ErrorFormat(
+ "AddMessageToChat({0}, {1}, {2}): " +
+ "chat.MessageBuffer.Add() threw exception:",
+ chat, msg, ignoreFilters
);
+ f_Logger.Error("AddMessageToChat(): ", ex);
#endif
if (chat.MessageBuffer is Db4oMessageBuffer ||
chat.MessageBuffer is SqliteMessageBuffer) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]