MCPcopy
hub / github.com/pinokiocomputer/pinokio / inspectorMainLog

Function inspectorMainLog

full.js:876–890  ·  view source on GitHub ↗
(label, payload)

Source from the content-addressed store, hash-verified

874const inspectorLogFile = path.join(os.tmpdir(), 'pinokio-inspector.log')
875
876const inspectorMainLog = (label, payload) => {
877 try {
878 const serialized = payload === undefined ? '' : ' ' + JSON.stringify(payload)
879 const line = `[InspectorMain] ${label}${serialized}\n`
880 try {
881 fs.appendFileSync(inspectorLogFile, line)
882 } catch (_) {}
883 process.stdout.write(line)
884 } catch (_) {
885 try {
886 fs.appendFileSync(inspectorLogFile, `[InspectorMain] ${label}\n`)
887 } catch (_) {}
888 process.stdout.write(`[InspectorMain] ${label}\n`)
889 }
890}
891
892const normalizeInspectorUrl = (value) => {
893 if (!value) {

Callers 1

selectTargetFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected