Skip to content

Commit

Permalink
feat: log warning if prefer native bindings is set, but pg-native is …
Browse files Browse the repository at this point in the history
…not found (fixes #281)
  • Loading branch information
gajus committed Aug 6, 2021
1 parent fd925aa commit 46f6186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/factories/createPool.ts
Expand Up @@ -67,7 +67,7 @@ export const createPool = (

native = true;
} else if (clientConfiguration.preferNativeBindings && !pgNativeBindingsAreAvailable) {
poolLog.info('using JavaScript bindings; pg-native not found');
poolLog.warn('using JavaScript bindings; pg-native not found');

// eslint-disable-next-line @typescript-eslint/no-require-imports
pg = require('pg');
Expand Down

0 comments on commit 46f6186

Please sign in to comment.