Skip to content

Commit 97d3ac4

Browse files
authored
Fix postgres/pg name mismatch (#270)
1 parent ca0357a commit 97d3ac4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Those configuration options are documented below:
118118
autoBreadcrumbs: {
119119
'console': false, // console logging
120120
'http': true, // http and https requests
121-
'postgres': true, // postgresql queries from pg module
121+
'pg': true, // postgresql queries from pg module
122122
}
123123
124124
.. describe:: maxBreadcrumbs

lib/breadcrumbs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ var wrappers = {
127127
}, originals);
128128
},
129129

130-
postgres: function (Raven) {
130+
pg: function (Raven) {
131131
// Using fill helper here is hard because of `this` binding
132132
var pg = require('pg');
133133
var origQuery = pg.Connection.prototype.query;

test/raven.client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ describe('raven.Client', function () {
935935
});
936936

937937
it('should not die trying to instrument a missing module', function (done) {
938-
client = new raven.Client(dsn, { autoBreadcrumbs: { postgres: true } });
938+
client = new raven.Client(dsn, { autoBreadcrumbs: { pg: true } });
939939
client.install();
940940
done();
941941
});

0 commit comments

Comments
 (0)