Switched to plain console logging

pull/25/head
Ryan Kistner 10 years ago
parent 0869f85b93
commit 3b3f6e272e

@ -57,9 +57,9 @@ namespace DepotDownloader
return cdnServers; return cdnServers;
} }
} }
catch (Exception) catch (Exception ex)
{ {
DebugLog.WriteLine("CDNClientPool", "Failed to retrieve content server list"); Console.WriteLine("Failed to retrieve content server list: {0}", ex.Message);
} }
} }
} }
@ -143,7 +143,7 @@ namespace DepotDownloader
{ {
client = null; client = null;
DebugLog.WriteLine("CDNClientPool", "Failed to connect to content server {0}: {1}", server, ex.Message); Console.WriteLine("Failed to connect to content server {0}: {1}", server, ex.Message);
int penalty = 0; int penalty = 0;
ConfigStore.TheConfig.ContentServerPenalty.TryGetValue(server.Host, out penalty); ConfigStore.TheConfig.ContentServerPenalty.TryGetValue(server.Host, out penalty);
@ -151,7 +151,7 @@ namespace DepotDownloader
} }
} }
DebugLog.WriteLine("CDNClientPool", "Initialized connection to content server {0} with depot id {1}", server, depotId); Console.WriteLine("Initialized connection to content server {0} with depot id {1}", server, depotId);
activeClientAuthed[client] = Tuple.Create(depotId, server); activeClientAuthed[client] = Tuple.Create(depotId, server);
return client; return client;
@ -177,7 +177,7 @@ namespace DepotDownloader
} }
catch (Exception ex) catch (Exception ex)
{ {
DebugLog.WriteLine("CDNClientPool", "Failed to reauth to content server {0}: {1}", server, ex.Message); Console.WriteLine("Failed to reauth to content server {0}: {1}", server, ex.Message);
} }
return false; return false;
@ -202,11 +202,11 @@ namespace DepotDownloader
{ {
if (authData.Item2.Type == "CDN" && reauthConnection(client, authData.Item2, depotId, depotKey)) if (authData.Item2.Type == "CDN" && reauthConnection(client, authData.Item2, depotId, depotKey))
{ {
DebugLog.WriteLine("CDNClientPool", "Re-authed CDN connection to content server {0} from {1} to {2}", authData.Item2, authData.Item1, depotId); Console.WriteLine("Re-authed CDN connection to content server {0} from {1} to {2}", authData.Item2, authData.Item1, depotId);
} }
else if (authData.Item2.Type == "CS" && steamSession.AppTickets[depotId] == null && reauthConnection(client, authData.Item2, depotId, depotKey)) else if (authData.Item2.Type == "CS" && steamSession.AppTickets[depotId] == null && reauthConnection(client, authData.Item2, depotId, depotKey))
{ {
DebugLog.WriteLine("CDNClientPool", "Re-authed anonymous connection to content server {0} from {1} to {2}", authData.Item2, authData.Item1, depotId); Console.WriteLine("Re-authed anonymous connection to content server {0} from {1} to {2}", authData.Item2, authData.Item1, depotId);
} }
else else
{ {

@ -292,7 +292,7 @@ namespace DepotDownloader
Action<SteamApps.CDNAuthTokenCallback> cbMethod = (cdnAuth) => Action<SteamApps.CDNAuthTokenCallback> cbMethod = (cdnAuth) =>
{ {
completed = true; completed = true;
Console.WriteLine("Got CDN auth token for {0} result: {1}", host, cdnAuth.Result); Console.WriteLine("Got CDN auth token for {0} result: {1} (expires {2})", host, cdnAuth.Result, cdnAuth.Expiration);
if (cdnAuth.Result != EResult.OK) if (cdnAuth.Result != EResult.OK)
{ {

Loading…
Cancel
Save