Debugging worker files

This commit is contained in:
benbierens 2024-11-27 10:25:52 +01:00
parent e91a574b2c
commit f0cbc0a53a
No known key found for this signature in database
GPG Key ID: 877D2C2E09A22F3A
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -12,6 +12,8 @@ namespace AutoClient.Modes.FolderStore
Folder = folder;
FilePath = filePath;
LoadState();
app.Log.Debug("Deserialized state: " + JsonConvert.SerializeObject(State));
}
private void LoadState()