From 0e0b7d69c159115453ea417fd0e327713de551a2 Mon Sep 17 00:00:00 2001 From: git-elliot Date: Tue, 5 Sep 2023 20:44:54 +0530 Subject: [PATCH] added logs for arp table --- lib/src/models/arp_table.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/models/arp_table.dart b/lib/src/models/arp_table.dart index 039049d..079e377 100644 --- a/lib/src/models/arp_table.dart +++ b/lib/src/models/arp_table.dart @@ -1,9 +1,11 @@ import 'dart:convert'; import 'dart:io'; +import 'package:logging/logging.dart'; import 'package:network_tools/src/models/arp_data.dart'; class ARPTable { + static final arpLogger = Logger("arp-table-logger"); static final arpTable = {}; static bool resolved = false; @@ -25,6 +27,7 @@ class ARPTable { return null; } for (final entry in entries) { + arpLogger.fine("Found entry: $entry"); final match = pattern.firstMatch(entry); if (match != null) { final arpData = ARPData( @@ -36,6 +39,7 @@ class ARPTable { ); final key = arpData.iPAddress; if (key != null) { + arpLogger.fine("Adding entry to table -> $entry"); arpTable[key] = arpData; } }