Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit 18e35da

Browse files
committed
Added Logs: Local setup progress logs
1 parent 3912666 commit 18e35da

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎scripts/xmem.js‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ function ollamaRunning() {
420420
function waitForContainers(names, timeoutSeconds = 180) {
421421
const pending = new Set(names);
422422
const deadline = Date.now() + timeoutSeconds * 1000;
423+
let waitLogged = false;
423424

424425
while (Date.now() < deadline) {
425426
for (const name of [...pending]) {
@@ -450,7 +451,11 @@ function waitForContainers(names, timeoutSeconds = 180) {
450451
return;
451452
}
452453

453-
log(`Waiting for local database containers: ${[...pending].join(", ")}`);
454+
if (!waitLogged) {
455+
log("Waiting for local database containers to become healthy. First startup can take 1-2 minutes.");
456+
waitLogged = true;
457+
}
458+
log(`Still waiting for: ${[...pending].join(", ")}`);
454459
sleep(5000);
455460
}
456461

@@ -526,8 +531,9 @@ function pythonHasPip(pythonPath) {
526531
function ensureVirtualenv() {
527532
const venvPython = venvPythonPath();
528533
if (!fs.existsSync(venvPython)) {
529-
log("Creating XMem virtualenv");
534+
log("Creating XMem virtualenv. Keep this terminal open; Windows may take a minute here.");
530535
run(systemPythonCommand(), ["-m", "venv", path.join(root, ".venv")]);
536+
log("XMem virtualenv created");
531537
}
532538

533539
if (!pythonHasPip(venvPython)) {

0 commit comments

Comments
 (0)