Skip to content

Commit 353911b

Browse files
committed
chore: Move Success Log in PortScanner.CheckPort
1 parent 45fdfe0 commit 353911b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/CommonLib/Processors/PortScanner.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,11 @@ public virtual async Task<bool> CheckPort(string hostname, int port = 445, int t
4848
if (throwError) {
4949
throw new TimeoutException("Timed Out");
5050
}
51-
_log.LogTrace("CheckPort Succeeded for {HostName}:{Port}", hostname, port);
52-
5351
PortScanCache.TryAdd(key, false);
5452
return false;
5553
}
5654

55+
_log.LogTrace("CheckPort Succeeded for {HostName}:{Port}", hostname, port);
5756
PortScanCache.TryAdd(key, true);
5857
return true;
5958
}

0 commit comments

Comments
 (0)