Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: sql/connection.cc

Issue 24638002: [sql] Log tag with sqlite errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/connection.cc
diff --git a/sql/connection.cc b/sql/connection.cc
index 097edd7a1ea2f57350869b2c4eaedb12db6b6bc1..9cef1bc0be867964df77174326fe8e46b379703e 100644
--- a/sql/connection.cc
+++ b/sql/connection.cc
@@ -1027,7 +1027,7 @@ int Connection::OnSqliteError(int err, sql::Statement *stmt) {
AddTaggedHistogram("Sqlite.Error", err);
// Always log the error.
- LOG(ERROR) << "sqlite error " << err
+ LOG(ERROR) << histogram_tag_ << " sqlite error " << err
Greg Spencer (Chromium) 2013/09/25 18:36:30 Would it make sense to use sqlite3_column_database
Scott Hess - ex-Googler 2013/09/25 19:37:04 http://www.sqlite.org/c3ref/column_database_name.h
<< ", errno " << GetLastErrno()
<< ": " << GetErrorMessage();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698