Skip to content

Commit d8aaa89

Browse files
author
Anthony Gardner
committed
Add logging from sequelize config options to PostgresStorageConfig
1 parent 30b1b20 commit d8aaa89

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "botbuilder-storage-postgres",
3-
"version": "1.0.4",
3+
"version": "1.1.0",
44
"license": "MIT",
55
"contributors": [
66
{

src/PostgresStorage.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { Sequelize, Model, DataTypes, Op } from "sequelize";
1313
export interface PostgresStorageConfig {
1414
uri: string;
1515
collection?: string;
16+
logging?: boolean | ((sql: string, timing?: number) => void);
1617
}
1718

1819
class PostgresStoreItem extends Model {
@@ -70,7 +71,8 @@ export class PostgresStorage implements Storage {
7071
min: 0,
7172
acquire: 30000,
7273
idle: 10000
73-
}
74+
},
75+
logging: this.config.logging
7476
});
7577
await PostgresStoreItem.init(
7678
{

0 commit comments

Comments
 (0)