diff --git a/src/Examples/BasicExample/Program.cs b/src/Examples/BasicExample/Program.cs index 49a8503..7773b9f 100644 --- a/src/Examples/BasicExample/Program.cs +++ b/src/Examples/BasicExample/Program.cs @@ -11,7 +11,7 @@ internal class Program private static async Task Main(string[] args) { // create client instance - GbxRemoteClient client = new("127.0.0.2", 5001, Logger.New(LogLevel.Debug)); + GbxRemoteClient client = new("127.0.0.1", 5000, Logger.New(LogLevel.Debug)); // connect and login if (!await client.LoginAsync("SuperAdmin", "SuperAdmin")) diff --git a/src/GbxRemote.Net/GbxRemoteClient.cs b/src/GbxRemote.Net/GbxRemoteClient.cs index b3d4c23..dd007b4 100644 --- a/src/GbxRemote.Net/GbxRemoteClient.cs +++ b/src/GbxRemote.Net/GbxRemoteClient.cs @@ -1,4 +1,5 @@ -using System.Threading.Tasks; +using System.Linq; +using System.Threading.Tasks; using GbxRemoteNet.Exceptions; using GbxRemoteNet.XmlRpc; using GbxRemoteNet.XmlRpc.Packets; @@ -87,7 +88,9 @@ public async Task CallMethodAsync(string method, params object[ /// public XmlRpcBaseType[] MethodArgs(params object[] args) { - _logger?.LogDebug("Converting C# types to XML-RPC"); + _logger?.LogTrace("Converting C# types to XML-RPC. Types to convert: {List}", + string.Join(", ", args.Select(a => a.GetType().ToString()))); + var xmlRpcArgs = new XmlRpcBaseType[args.Length]; for (var i = 0; i < args.Length; i++)