Use DebugLog

pull/601/head
Alstruit 7 months ago
parent f6e60b1009
commit ebf7446024
No known key found for this signature in database
GPG Key ID: 4F57E6793C946CEC

@ -358,14 +358,14 @@ namespace DepotDownloader
} }
} }
const UInt32 MAX_PASSWORD_SIZE = 64;
if (password != null && password.Length > 64) if (password != null && password.Length >= MAX_PASSWORD_SIZE)
{ {
Console.WriteLine("Notice: password is longer than 64 characters and will be trimmed."); DebugLog.WriteLine(nameof(Program),$"Notice: password is longer than {MAX_PASSWORD_SIZE} characters and will be trimmed.");
password = password.Substring(0, 64); password = password.Substring(0, 64);
} }
return ContentDownloader.InitializeSteam3(username, password); return ContentDownloader.InitializeSteam3(username, password);
} }

Loading…
Cancel
Save