EDMI.API: improve logging

This commit is contained in:
Jonathan Jenne 2022-01-18 13:28:00 +01:00
parent f5ec035772
commit ddeb96824d

View File

@ -106,6 +106,8 @@ Public Class Client
Dim oAddress = New EndpointAddress($"net.tcp://{IPAddress}:{PortNumber}/DigitalData/Services/Main")
Dim oFactory = New ChannelFactory(Of IEDMIServiceChannel)(oBinding, oAddress)
Logger.Debug("Connecting to Service at: [{0}]", oAddress)
ChannelFactory = oFactory
Catch ex As Exception
Logger.Error(ex)
@ -122,6 +124,7 @@ Public Class Client
Logger.Debug("Opening channel..")
Channel.Open()
Dim oResponse = Channel.GetClientConfig()
If oResponse.OK Then
ClientConfig = oResponse.ClientConfig