MCPcopy Create free account
hub / github.com/GrowthEase/GameSentry / writeFile

Function writeFile

index.js:582–591  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

580}
581
582function writeFile(data) {
583 if (!data) {
584 console.log("data is null")
585 return
586 }
587 console.log(JSON.stringify(data))
588 const currentTime = moment(Date.now()).format('YYYY-MM-DD HH:mm:ss')
589 const param = currentTime + '\r\n' + JSON.stringify(data) + '\r\n'
590 fs.writeFileSync(logger_path, param, {flag: 'a'})
591}
592
593function writeFileReport(data) {
594 if (!data) {

Callers 4

exec_outputFunction · 0.85
onMessageFunction · 0.85
onProcessCrashedFunction · 0.85
onSessionDetachedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected