From c81871f010cd8449db5edb03582b50278e2e5cf6 Mon Sep 17 00:00:00 2001 From: Eduard Wisch Date: Tue, 19 May 2026 19:49:49 +0200 Subject: [PATCH] IP-Scan instrumentiert: loggt Eingabe-Subnetz vs. gescanntes Subnetz Co-Authored-By: Claude Opus 4.7 (1M context) --- src/lib/tools/netzwerk/ipscan.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/tools/netzwerk/ipscan.ts b/src/lib/tools/netzwerk/ipscan.ts index de3f40a..d76db8d 100644 --- a/src/lib/tools/netzwerk/ipscan.ts +++ b/src/lib/tools/netzwerk/ipscan.ts @@ -9,6 +9,7 @@ */ import { scanner } from '../../scanner'; +import { debugLog } from '../../debuglog.svelte'; import type { Tool } from '../types'; export const ipScanTool: Tool = { @@ -58,7 +59,14 @@ export const ipScanTool: Tool = { ctx.protocol.subnet = subnet; } + debugLog.add( + 'info', + `IP-Scan: Dialog-Eingabe="${String(ctx.params.subnet ?? '')}", ` + + `Protokoll-Subnetz="${String(ctx.protocol.subnet ?? '')}" → ` + + `gescannt wird "${subnet}" (Quelle: ${source})`, + ); const { devices } = await scanner.ipScan({ subnet }); + debugLog.add('info', `IP-Scan Ergebnis: ${devices.length} Geräte in ${subnet}`); const via = source === 'adapter' ? ' (Adapter erkannt)' : ''; return { label: `${devices.length} Geräte im Netz ${subnet}${via}`,