From ddeb96824d61a827e88ccc8234f569ce0f6198e5 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Tue, 18 Jan 2022 13:28:00 +0100 Subject: [PATCH] EDMI.API: improve logging --- Modules.EDMIAPI/Client.vb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules.EDMIAPI/Client.vb b/Modules.EDMIAPI/Client.vb index 7c1a2dea..c2bad5be 100644 --- a/Modules.EDMIAPI/Client.vb +++ b/Modules.EDMIAPI/Client.vb @@ -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