mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
Removed unused code for logging in MySQL lib
- `mysql2` doesn't support this and we haven't had it enabled for a long time - if we need this feature, we can re-add it with a working implementation
This commit is contained in:
parent
9957c2a77c
commit
93339b3e42
@ -36,19 +36,6 @@ function configure(dbConfig) {
|
||||
dbConfig.connection.timezone = 'Z';
|
||||
dbConfig.connection.charset = 'utf8mb4';
|
||||
dbConfig.connection.decimalNumbers = true;
|
||||
|
||||
// NOTE: disabled so that worker processes can use the db without
|
||||
// requiring logging and causing file desriptor leaks.
|
||||
// See https://github.com/TryGhost/Ghost/issues/12496
|
||||
//
|
||||
// const logging = require('@tryghost/logging');
|
||||
// const errors = require('@tryghost/errors');
|
||||
// dbConfig.connection.loggingHook = function loggingHook(err) {
|
||||
// logging.error(new errors.InternalServerError({
|
||||
// code: 'MYSQL_LOGGING_HOOK',
|
||||
// err: err
|
||||
// }));
|
||||
// };
|
||||
}
|
||||
|
||||
return dbConfig;
|
||||
|
Loading…
Reference in New Issue
Block a user