Use botName identifier for new SteamClient logging context

This commit is contained in:
JustArchi
2020-04-18 14:15:20 +02:00
parent 4b7369661c
commit 06d9014ebe

View File

@@ -221,7 +221,7 @@ namespace ArchiSteamFarm {
SteamConfiguration = SteamConfiguration.Create(builder => builder.WithProtocolTypes(ASF.GlobalConfig.SteamProtocols).WithCellID(ASF.GlobalDatabase.CellID).WithServerListProvider(ASF.GlobalDatabase.ServerListProvider).WithHttpClientFactory(ArchiWebHandler.GenerateDisposableHttpClient));
// Initialize
SteamClient = new SteamClient(SteamConfiguration);
SteamClient = new SteamClient(SteamConfiguration, botName);
if (Debugging.IsUserDebugging && Directory.Exists(SharedInfo.DebugDirectory)) {
string debugListenerPath = Path.Combine(SharedInfo.DebugDirectory, botName);