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

Issue 24638002: [sql] Log tag with sqlite errors. (Closed)

Created:
7 years, 2 months ago by Scott Hess - ex-Googler
Modified:
7 years, 2 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

[sql] Log tag with sqlite errors. Log lines like: ERROR:connection.cc(1007)] sqlite error 266, errno 5: disk I/O error would be ever so much more useful if they indicated which database they were associated with. This logs the histogram tag, which indicates the logical database (the code which owns this connection). [As opposed to the filesystem name.] BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225518

Patch Set 1 #

Total comments: 2

Patch Set 2 : Log the sql statement, too. #

Total comments: 2

Patch Set 3 : Put sql statement on same line as error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -10 lines) Patch
M sql/connection.h View 1 1 chunk +11 lines, -3 lines 0 comments Download
M sql/connection.cc View 1 2 4 chunks +11 lines, -6 lines 0 comments Download
M sql/statement.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Scott Hess - ex-Googler
There are cases where code uses un-tagged connections, which will get a bonus space, but ...
7 years, 2 months ago (2013-09-25 18:32:02 UTC) #1
Scott Hess - ex-Googler
There are cases where code uses un-tagged connections, which will get a bonus space, but ...
7 years, 2 months ago (2013-09-25 18:32:07 UTC) #2
Greg Spencer (Chromium)
https://codereview.chromium.org/24638002/diff/1/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/24638002/diff/1/sql/connection.cc#newcode1030 sql/connection.cc:1030: LOG(ERROR) << histogram_tag_ << " sqlite error " << ...
7 years, 2 months ago (2013-09-25 18:36:30 UTC) #3
Scott Hess - ex-Googler
Added logging of the involved sql code. PTAL? The only downside I can think of ...
7 years, 2 months ago (2013-09-25 19:37:04 UTC) #4
Greg Spencer (Chromium)
LGTM https://codereview.chromium.org/24638002/diff/1002/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/24638002/diff/1002/sql/connection.cc#newcode1038 sql/connection.cc:1038: LOG(ERROR) << "sql: " << sql; nits: You ...
7 years, 2 months ago (2013-09-25 20:01:17 UTC) #5
Scott Hess - ex-Googler
ptal https://codereview.chromium.org/24638002/diff/1002/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/24638002/diff/1002/sql/connection.cc#newcode1038 sql/connection.cc:1038: LOG(ERROR) << "sql: " << sql; On 2013/09/25 ...
7 years, 2 months ago (2013-09-25 20:22:35 UTC) #6
Greg Spencer (Chromium)
Still LGTM.
7 years, 2 months ago (2013-09-25 20:27:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/24638002/14001
7 years, 2 months ago (2013-09-25 20:37:53 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/24638002/14001
7 years, 2 months ago (2013-09-25 21:59:39 UTC) #9
commit-bot: I haz the power
7 years, 2 months ago (2013-09-26 18:37:10 UTC) #10
Message was sent while issue was closed.
Change committed as 225518

Powered by Google App Engine
This is Rietveld 408576698