MCPcopy Create free account
hub / github.com/arctic-cli/interface / logDebug

Function logDebug

packages/arctic/src/provider/usage.ts:963–967  ·  view source on GitHub ↗
(message: string, data?: { [key: string]: unknown })

Source from the content-addressed store, hash-verified

961 }): Promise<Omit<Record, "providerID" | "providerName" | "fetchedAt">> {
962 const debugFile = path.join(Global.Path.log, "google-usage-debug.log")
963 const logDebug = async (message: string, data?: { [key: string]: unknown }) => {
964 const safe = data ? JSON.stringify(data) : ""
965 const line = `[${new Date().toISOString()}] ${message}${safe ? ` ${safe}` : ""}\n`
966 await fs.appendFile(debugFile, line).catch(() => {})
967 }
968
969 const readResponseBody = async (response: any): Promise<string> => {
970 if (response && typeof response.text === "function") {

Callers 5

fetchGoogleUsageFunction · 0.70
ensureGoogleAccessTokenFunction · 0.70
loadManagedProjectFunction · 0.70
onboardManagedProjectFunction · 0.70
ensureProjectContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected