Merge pull request #27257 from overleaf/bg-filestore-migration-usability

filestore migration usability changes

GitOrigin-RevId: 47e8c8434c35b1b16c41700dfef11ce4602a3063
This commit is contained in:
Brian Gough
2025-07-23 12:04:01 +01:00
committed by Copybot
parent 1b4cbd4efb
commit b8e2a8bfdb
3 changed files with 399 additions and 71 deletions

View File

@@ -11,7 +11,7 @@ const LoggingManager = {
/**
* @param {string} name - The name of the logger
*/
initialize(name) {
initialize(name, options = {}) {
this.isProduction =
(process.env.NODE_ENV || '').toLowerCase() === 'production'
const isTest = (process.env.NODE_ENV || '').toLowerCase() === 'test'
@@ -27,7 +27,7 @@ const LoggingManager = {
req: Serializers.req,
res: Serializers.res,
},
streams: [this._getOutputStreamConfig()],
streams: options.streams ?? [this._getOutputStreamConfig()],
})
this._setupRingBuffer()
this._setupLogLevelChecker()