Skip to content

Commit

Permalink
fix: ignore db query error default logger
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 19, 2023
1 parent dddb10e commit 5a3d2d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/config.default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ export default (appInfo: EggAppConfig) => {
user: process.env.CNPMCORE_MYSQL_USER || process.env.MYSQL_USER || 'root',
password: process.env.CNPMCORE_MYSQL_PASSWORD || process.env.MYSQL_PASSWORD,
charset: 'utf8mb4',
logger: {},
logger: {
// https://github.com/cyjake/leoric/blob/master/docs/zh/logging.md#logqueryerror
// ignore query error
logQueryError() {},
},
};

config.redis = {
Expand Down

0 comments on commit 5a3d2d0

Please sign in to comment.