Skip to content

Commit 355f053

Browse files
authored
Add Logging on background redeemer (#3545)
1 parent c018fdb commit 355f053

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ArchiSteamFarm/Localization/Strings.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,4 +807,7 @@ Process uptime: {1}</value>
807807
<value>Decryption of {0} database component has failed. This can be OK if you've just changed your bot's {1}, you should no longer observe this warning on the next run then. Otherwise, you should investigate and find out the exact reason for failure.</value>
808808
<comment>{0} will be replaced by bot database component's name (string), {1} will be replaced by bot config component's name (string).</comment>
809809
</data>
810+
<data name="WarningNoValidKeysFound" xml:space="preserve">
811+
<value>No valid keys were found in your .keys file for redemption. Please ensure your keys are in the correct format.</value>
812+
</data>
810813
</root>

ArchiSteamFarm/Steam/Bot.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,11 @@ internal async Task ImportKeysToRedeem(string filePath) {
14951495

14961496
if (gamesToRedeemInBackground.Count > 0) {
14971497
AddGamesToRedeemInBackground(gamesToRedeemInBackground);
1498+
} else {
1499+
ArchiLogger.LogGenericWarning(Strings.WarningNoValidKeysFound);
14981500
}
1501+
} else {
1502+
ArchiLogger.LogGenericError(Strings.FormatErrorIsEmpty(filePath));
14991503
}
15001504

15011505
File.Delete(filePath);

0 commit comments

Comments
 (0)