mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
increase log metadata size to 10000 characters
This commit is contained in:
parent
342db3928c
commit
89d6564d74
1 changed files with 2 additions and 2 deletions
|
|
@ -132,8 +132,8 @@ const truncateObjectDeep = (object: any, length: number): any => {
|
|||
|
||||
class GcpLoggingTransport extends LoggingWinston {
|
||||
log(info: any, callback: (err: Error | null, apiResponse?: any) => void) {
|
||||
// reduce the size of the log entry by truncating any string values to 500 characters
|
||||
info = truncateObjectDeep(info, 500) as never
|
||||
// reduce the size of the log entry by truncating any string values to 10000 characters
|
||||
info = truncateObjectDeep(info, 10000) as never
|
||||
super.log(info, callback)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue