Skip to content

Commit cc71cb0

Browse files
committed
Logging cleanup in UPS_Device
1 parent e2a2d2e commit cc71cb0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

WinNUT_V2/WinNUT-Client_Common/UPS_Device.vb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ Public Class UPS_Device
174174

175175
Try
176176
Nut_Socket.Connect()
177-
LogFile.LogTracing("TCP Socket Created", LogLvl.LOG_NOTICE, Me)
178-
179177
' If Nut_Socket.ExistsOnServer(Nut_Config.UPSName) Then
180178
UPS_Datas = GetUPSProductInfo()
181179
Update_Data.Start()
@@ -370,7 +368,8 @@ Public Class UPS_Device
370368
If statusDiff = 0 Then
371369
LogFile.LogTracing("UPS statuses have not changed since last update, skipping.", LogLvl.LOG_DEBUG, Me)
372370
Else
373-
LogFile.LogTracing("UPS statuses have CHANGED, updating...", LogLvl.LOG_NOTICE, Me)
371+
LogFile.LogTracing("UPS statuses have CHANGED...", LogLvl.LOG_NOTICE, Me)
372+
LogFile.LogTracing("Current statuses: " & UPS_rt_Status, LogLvl.LOG_NOTICE, Me)
374373
oldStatusBitmask = .UPS_Status
375374
RaiseEvent StatusesChanged(Me, statusDiff)
376375
End If

0 commit comments

Comments
 (0)