This commit is contained in:
Ben 2024-10-30 11:43:57 +01:00
parent 2554645abc
commit 605bb6411f
No known key found for this signature in database
GPG Key ID: 0F16E812E736C24B

View File

@ -178,6 +178,12 @@ namespace AutoClient.Modes
if (!recent.Started.HasValue) recent.Started = now;
if (!recent.Finish.HasValue) recent.Finish = now;
}
app.Log.Log($"Updated purchase information for PID '{recent.Pid}' for file '{sourceFilename}': " +
$"Submitted: {recent.Submitted.HasValue} " +
$"Started: {recent.Started.HasValue} " +
$"Expiry: {recent.Expiry.HasValue} " +
$"Finish: {recent.Finish.HasValue}");
}
private async Task MakeNewPurchase(ICodexInstance instance, CodexNode codex)
@ -202,6 +208,8 @@ namespace AutoClient.Modes
Pid = response
}
]).ToArray();
app.Log.Log($"New purchase created for '{sourceFilename}'. PID: '{response}'");
}
private async Task EnsureCid(ICodexInstance instance, CodexNode codex)
@ -224,6 +232,10 @@ namespace AutoClient.Modes
app.Log.Log($"Existing CID '{State.Cid}' for '{sourceFilename}' could not be found in the network.");
State.Cid = "";
}
else
{
app.Log.Log($"Existing CID '{State.Cid}' for '{sourceFilename}' was successfully found in the network.");
}
}
if (string.IsNullOrEmpty(State.Cid))