[hyena] HyenaSqliteCommand: Better logging for CurrentSqlText crashes
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] HyenaSqliteCommand: Better logging for CurrentSqlText crashes
- Date: Fri, 11 Feb 2011 21:01:53 +0000 (UTC)
commit 5e8c4d153ebddcdbffa75a1a02f5d7228c3d0238
Author: Gabriel Burt <gabriel burt gmail com>
Date: Fri Feb 11 14:58:51 2011 -0600
HyenaSqliteCommand: Better logging for CurrentSqlText crashes
.../Hyena.Data.Sqlite/HyenaSqliteCommand.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/Hyena.Data.Sqlite/Hyena.Data.Sqlite/HyenaSqliteCommand.cs b/Hyena.Data.Sqlite/Hyena.Data.Sqlite/HyenaSqliteCommand.cs
index f7a1ba9..2449f4d 100644
--- a/Hyena.Data.Sqlite/Hyena.Data.Sqlite/HyenaSqliteCommand.cs
+++ b/Hyena.Data.Sqlite/Hyena.Data.Sqlite/HyenaSqliteCommand.cs
@@ -89,8 +89,9 @@ namespace Hyena.Data.Sqlite
result = null;
int execution_ms = 0;
- string command_text = CurrentSqlText;
+ string command_text = null;
try {
+ command_text = CurrentSqlText;
ticks = System.Environment.TickCount;
switch (CommandType) {
@@ -116,7 +117,7 @@ namespace Hyena.Data.Sqlite
Log.DebugFormat ("Executed in {0}ms {1}", execution_ms, command_text);
}
} catch (Exception e) {
- Log.DebugFormat ("Exception executing command: {0}", command_text);
+ Log.DebugFormat ("Exception executing command: {0}", command_text ?? command);
Log.Exception (e);
execution_exception = e;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]