Limit logger size via DEBUG_MAX (#802)

* Limit logger size via DEBUG_MAX

* Any negative disables

* Node imports

* Update test
This commit is contained in:
Jaco Greeff
2020-12-12 18:54:31 +01:00
committed by GitHub
parent 9229f9f295
commit 45146efce8
5 changed files with 40 additions and 29 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
// Copyright 2017-2020 @polkadot/x-textencoder authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { TextDecoder as NodeTextDecoder } from 'util';
import util from 'util';
export const TextDecoder = typeof global.TextDecoder === 'undefined'
? NodeTextDecoder as unknown as typeof global.TextDecoder
? util.TextDecoder as unknown as typeof global.TextDecoder
: global.TextDecoder;