mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05: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
1 changed files with 0 additions and 13 deletions
|
@ -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…
Add table
Reference in a new issue