Skip to content

Commit

Permalink
Merge pull request #75 from EvoTM/dev
Browse files Browse the repository at this point in the history
Move type conversion log to trace instead and give it more informatio…
  • Loading branch information
snixtho authored Dec 6, 2022
2 parents 64c37ba + fbe0d27 commit 2737cf4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Examples/BasicExample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Program>(LogLevel.Debug));
GbxRemoteClient client = new("127.0.0.1", 5000, Logger.New<Program>(LogLevel.Debug));

// connect and login
if (!await client.LoginAsync("SuperAdmin", "SuperAdmin"))
Expand Down
7 changes: 5 additions & 2 deletions src/GbxRemote.Net/GbxRemoteClient.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -87,7 +88,9 @@ public async Task<ResponseMessage> CallMethodAsync(string method, params object[
/// <returns></returns>
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++)
Expand Down

0 comments on commit 2737cf4

Please sign in to comment.