fix name in logs
This commit is contained in:
parent
168024ea4f
commit
610af0c4b1
2 changed files with 13 additions and 23 deletions
|
|
@ -56,13 +56,9 @@ app.use(express.static(path.join(__dirname, "..", "dist")));
|
||||||
app.use(express.static(config.obsidianAssetsPath));
|
app.use(express.static(config.obsidianAssetsPath));
|
||||||
|
|
||||||
const server = app.listen(config.port, () => {
|
const server = app.listen(config.port, () => {
|
||||||
console.log(
|
console.log(`[ignis] Server running on http://localhost:${config.port}`);
|
||||||
`[obsidian-bridge] Server running on http://localhost:${config.port}`,
|
console.log(`[ignis] Vault root: ${config.vaultRoot}`);
|
||||||
);
|
console.log(`[ignis] Vaults: ${Object.keys(config.vaults).join(", ")}`);
|
||||||
console.log(`[obsidian-bridge] Vault root: ${config.vaultRoot}`);
|
|
||||||
console.log(
|
|
||||||
`[obsidian-bridge] Vaults: ${Object.keys(config.vaults).join(", ")}`,
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
setupWebSocket(server);
|
setupWebSocket(server);
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ window.require = function (moduleName) {
|
||||||
if (shimRegistry[moduleName]) {
|
if (shimRegistry[moduleName]) {
|
||||||
return shimRegistry[moduleName];
|
return shimRegistry[moduleName];
|
||||||
}
|
}
|
||||||
console.warn("[obsidian-bridge] Unshimmed require:", moduleName);
|
console.warn("[ignis] Unshimmed require:", moduleName);
|
||||||
return wrapWithProxy({}, `UNKNOWN(${moduleName})`);
|
return wrapWithProxy({}, `UNKNOWN(${moduleName})`);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -115,7 +115,7 @@ if (typeof window.Buffer === "undefined") {
|
||||||
}
|
}
|
||||||
|
|
||||||
window.close = function () {
|
window.close = function () {
|
||||||
console.log("[obsidian-bridge] window.close() blocked");
|
console.log("[ignis] window.close() blocked");
|
||||||
};
|
};
|
||||||
|
|
||||||
window.addEventListener(
|
window.addEventListener(
|
||||||
|
|
@ -146,16 +146,13 @@ window.__currentVaultId = _urlParams.get("vault") || "";
|
||||||
id: info.id,
|
id: info.id,
|
||||||
path: "/",
|
path: "/",
|
||||||
};
|
};
|
||||||
console.log("[obsidian-bridge] Vault:", window.__vaultConfig);
|
console.log("[ignis] Vault:", window.__vaultConfig);
|
||||||
console.log(
|
console.log("[ignis] Obsidian version:", window.__obsidianVersion);
|
||||||
"[obsidian-bridge] Obsidian version:",
|
|
||||||
window.__obsidianVersion,
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
console.warn("[obsidian-bridge] No vault found, will show manager");
|
console.warn("[ignis] No vault found, will show manager");
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("[obsidian-bridge] Failed to fetch vault config:", e);
|
console.error("[ignis] Failed to fetch vault config:", e);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
@ -186,21 +183,18 @@ window.__currentVaultId = _urlParams.get("vault") || "";
|
||||||
fsShim._metadataCache.set("", { type: "directory" });
|
fsShim._metadataCache.set("", { type: "directory" });
|
||||||
fsShim._metadataCache.set("/", { type: "directory" });
|
fsShim._metadataCache.set("/", { type: "directory" });
|
||||||
console.log(
|
console.log(
|
||||||
"[obsidian-bridge] Metadata cache populated:",
|
"[ignis] Metadata cache populated:",
|
||||||
fsShim._metadataCache.size,
|
fsShim._metadataCache.size,
|
||||||
"entries",
|
"entries",
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
console.error(
|
console.error("[ignis] Failed to fetch metadata tree:", xhr.status);
|
||||||
"[obsidian-bridge] Failed to fetch metadata tree:",
|
|
||||||
xhr.status,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("[obsidian-bridge] Failed to init metadata cache:", e);
|
console.error("[ignis] Failed to init metadata cache:", e);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
installRequestUrlShim();
|
installRequestUrlShim();
|
||||||
|
|
||||||
console.log("[obsidian-bridge] Shim loader initialized");
|
console.log("[ignis] Shim loader initialized");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue