modify bugs
This commit is contained in:
@@ -8,10 +8,7 @@ export const database = createDBConfig((configure) => ({
|
||||
common: {
|
||||
synchronize: true,
|
||||
// 启用详细日志以便调试 SQL 错误
|
||||
logging:
|
||||
configure.env.get('NODE_ENV') === 'development'
|
||||
? ['query', 'error', 'schema', 'warn', 'info', 'log']
|
||||
: ['error'],
|
||||
logging: configure.env.get('NODE_ENV') === 'development' ? ['error', 'query'] : ['error'],
|
||||
// 启用最大日志记录
|
||||
maxQueryExecutionTime: 1000,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user