MCPcopy Create free account
hub / github.com/QLHazyCoder/FlowPilot / addLog

Function addLog

background/logging-status.js:34–42  ·  view source on GitHub ↗
(message, level = 'info')

Source from the content-addressed store, hash-verified

32 }
33
34 async function addLog(message, level = 'info') {
35 const state = await getState();
36 const logs = state.logs || [];
37 const entry = { message, level, timestamp: Date.now() };
38 logs.push(entry);
39 if (logs.length > 500) logs.splice(0, logs.length - 500);
40 await setState({ logs });
41 chrome.runtime.sendMessage({ type: 'LOG_ENTRY', payload: entry }).catch(() => { });
42 }
43
44 async function setStepStatus(step, status) {
45 const state = await getState();

Callers 15

fetchCloudflareEmailFunction · 0.70
fetchDuckEmailFunction · 0.70
handleStepDataFunction · 0.70
handleMessageFunction · 0.70
closeTabsByUrlPrefixFunction · 0.70
appendAccountRunRecordFunction · 0.70

Calls 2

getStateFunction · 0.85
setStateFunction · 0.85

Tested by

no test coverage detected