From 15f0dc637d594a176a21f28c641eba261af24281 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Mon, 6 Oct 2025 21:21:33 +0200 Subject: [PATCH] chore: improve logging Update README with version warning Update Ironmount image version to v0.2.0 --- README.md | 5 +++-- .../src/modules/backends/directory/directory-backend.ts | 6 +++--- apps/server/src/modules/lifecycle/startup.ts | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 949551e..3a7c05a 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ -
+> [!WARNING] +> Ironmount is still in version 0.x.x and is subject to major changes from version to version. I am developing the core features and collecting feedbacks. Expect bugs! Please open issues and join the Discord to discuss together ## Intro @@ -41,7 +42,7 @@ In order to run Ironmount, you need to have Docker and Docker Compose installed ```yaml services: ironmount: - image: ghcr.io/nicotsx/ironmount:v0.1.1 + image: ghcr.io/nicotsx/ironmount:v0.2.0 container_name: ironmount restart: unless-stopped cap_add: diff --git a/apps/server/src/modules/backends/directory/directory-backend.ts b/apps/server/src/modules/backends/directory/directory-backend.ts index 902faa4..4c119f8 100644 --- a/apps/server/src/modules/backends/directory/directory-backend.ts +++ b/apps/server/src/modules/backends/directory/directory-backend.ts @@ -1,12 +1,12 @@ import * as fs from "node:fs/promises"; import * as npath from "node:path"; import { BACKEND_STATUS, type BackendConfig } from "@ironmount/schemas"; -import type { VolumeBackend } from "../backend"; -import { logger } from "../../../utils/logger"; import { toMessage } from "../../../utils/errors"; +import { logger } from "../../../utils/logger"; +import type { VolumeBackend } from "../backend"; const mount = async (_config: BackendConfig, path: string) => { - logger.info("Mounting directory volume..."); + logger.info("Mounting directory volume...", path); await fs.mkdir(path, { recursive: true }); return { status: BACKEND_STATUS.mounted }; }; diff --git a/apps/server/src/modules/lifecycle/startup.ts b/apps/server/src/modules/lifecycle/startup.ts index 17d55e4..87c5489 100644 --- a/apps/server/src/modules/lifecycle/startup.ts +++ b/apps/server/src/modules/lifecycle/startup.ts @@ -21,7 +21,7 @@ export const startup = async () => { existingTasks.forEach(async (task) => await task.destroy()); schedule("* * * * *", async () => { - logger.info("Running health check for all volumes..."); + logger.debug("Running health check for all volumes..."); const volumes = await db.query.volumesTable.findMany({ where: or(eq(volumesTable.status, "mounted"), eq(volumesTable.status, "error")),