From f0cbc0a53af696c384b391dae3276ab5044efd10 Mon Sep 17 00:00:00 2001 From: benbierens Date: Wed, 27 Nov 2024 10:25:52 +0100 Subject: [PATCH] Debugging worker files --- Tools/AutoClient/Modes/FolderStore/FileWorker.cs | 2 +- Tools/AutoClient/Modes/FolderStore/JsonBacked.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/AutoClient/Modes/FolderStore/FileWorker.cs b/Tools/AutoClient/Modes/FolderStore/FileWorker.cs index 063602f..37e52bd 100644 --- a/Tools/AutoClient/Modes/FolderStore/FileWorker.cs +++ b/Tools/AutoClient/Modes/FolderStore/FileWorker.cs @@ -1,5 +1,4 @@ using Logging; -using Nethereum.Contracts; namespace AutoClient.Modes.FolderStore { @@ -22,6 +21,7 @@ namespace AutoClient.Modes.FolderStore this.instance = instance; this.purchaseInfo = purchaseInfo; sourceFilename = filename.File; + if (sourceFilename.ToLowerInvariant().EndsWith(".json")) throw new Exception("Not an era file."); this.onFileUploaded = onFileUploaded; this.onNewPurchase = onNewPurchase; codex = new CodexNode(app, instance); diff --git a/Tools/AutoClient/Modes/FolderStore/JsonBacked.cs b/Tools/AutoClient/Modes/FolderStore/JsonBacked.cs index d00581a..a9be798 100644 --- a/Tools/AutoClient/Modes/FolderStore/JsonBacked.cs +++ b/Tools/AutoClient/Modes/FolderStore/JsonBacked.cs @@ -12,6 +12,8 @@ namespace AutoClient.Modes.FolderStore Folder = folder; FilePath = filePath; LoadState(); + + app.Log.Debug("Deserialized state: " + JsonConvert.SerializeObject(State)); } private void LoadState()