Skip to content

Commit

Permalink
feat(core): Verbose query error logging (#433)
Browse files Browse the repository at this point in the history
When the LogLevel is set to `Verbose`, the full error message will be logged on any TypeORM errors.
  • Loading branch information
thomas-advantitge authored Aug 12, 2020
1 parent 0121484 commit 8cf7483
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/config/logger/typeorm-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export class TypeOrmLogger implements TypeOrmLoggerInterface {
if (this.shouldDisplay('error')) {
const sql = this.formatQueryWithParams(query, parameters);
Logger.error(`Query error: ${sql}`, context);
Logger.verbose(error, context);
}
}

Expand Down

0 comments on commit 8cf7483

Please sign in to comment.