MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / recentServiceLogLines

Function recentServiceLogLines

scripts/studio-provider-bridge.mjs:255–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

253}
254
255function recentServiceLogLines() {
256 if (!localServiceLog) {
257 return "";
258 }
259 try {
260 const data = fs.readFileSync(localServiceLog, "utf8");
261 return data.split(/\r?\n/).filter(Boolean).slice(-20).join("\n");
262 } catch {
263 return "";
264 }
265}
266
267async function maybeRestartLocalService(metadata) {
268 if (metadata.ok || stopped || !localUnavailableSince) {

Callers 1

printRecentServiceLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected