mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-14 13:16:16 -08:00
fix(logging): preserve shared diagnostics
This commit is contained in:
1 parent
135dae2b15
commit
e25c8fc35f
3 files changed
+64
-35
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import { redactSensitiveData } from '@iptvnator/shared/logging';
|
||||
|
||||
const TRACE_ENV_TRUE_VALUES = new Set(['1', 'true', 'yes', 'on']);
|
||||
const TRACE_PREFIX = '[IPTVnator Trace]';
|
||||
const MAX_TRACE_ARRAY_ITEMS = 5;
|
||||
@@ -166,8 +168,7 @@ export function trace(scope: string, message: string, payload?: unknown): void {
|
||||
|
||||
console.log(
|
||||
`${TRACE_PREFIX}[${scope}] ${message} ${safeStringifyForTrace(
|
||||
summarizeForTrace(redactSensitiveData(payload))
|
||||
summarizeForTrace(payload)
|
||||
)}`
|
||||
);
|
||||
}
|
||||
import { redactSensitiveData } from '@iptvnator/shared/logging';
|
||||
Reference in new issue
Block a user