MCPcopy
hub / github.com/signalapp/Signal-Desktop / warn

Function warn

ts/util/rotatingPinoDest.node.ts:36–43  ·  view source on GitHub ↗
(msg: string)

Source from the content-addressed store, hash-verified

34 let retryCount = 0;
35
36 const warn = (msg: string) => {
37 const line = JSON.stringify({
38 level: 40,
39 time: new Date(),
40 msg,
41 });
42 boom.write(`${line}\n`);
43 };
44
45 function maybeRotate(startingIndex = maxSavedLogFiles - 1) {
46 let pendingFileIndex = startingIndex;

Callers 1

maybeRotateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected