mirror of
https://github.com/larsbaunwall/vscode-copilot-bridge.git
synced 2025-10-05 22:22:59 +00:00
Logs/docs: add /healthz verbose log and README ‘Viewing logs’ steps
Co-Authored-By: Lars Baunwall <larslb@thinkability.dk>
This commit is contained in:
parent
862eab2a4a
commit
e61d191ebf
2 changed files with 11 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ async function startBridge() {
|
|||
const cfgNow = vscode.workspace.getConfiguration('bridge');
|
||||
const verboseNow = cfgNow.get<boolean>('verbose') ?? false;
|
||||
if (!access && verboseNow) {
|
||||
if (verboseNow) output?.appendLine(`Healthz: access=${access ? 'present' : 'missing'}`);
|
||||
await getAccess();
|
||||
}
|
||||
writeJson(res, 200, { ok: true, copilot: access ? 'ok' : 'unavailable', version: vscode.version });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue