@@ -41,7 +41,7 @@ func anonymizeReplay(
4141 grpcAnonymizer * GRPCAnonymizer ,
4242 performChatAnonymizationBool bool ) bool {
4343
44- log .Info ("Entered anonymizeReplay()" )
44+ log .Debug ("Entered anonymizeReplay()" )
4545
4646 // Anonymization of Chat events that might
4747 // contain sensitive information for research purposes:
@@ -59,7 +59,7 @@ func anonymizeReplay(
5959 return false
6060 }
6161
62- log .Info ("Finished anonymizeReplay()" )
62+ log .Debug ("Finished anonymizeReplay()" )
6363 return true
6464}
6565
@@ -82,7 +82,7 @@ type GRPCAnonymizer struct {
8282// grpcConnect initializes a connection to a specified in settings grpc server.
8383func (anonymizer * GRPCAnonymizer ) grpcDialConnect () bool {
8484
85- log .Info ("Entered GRPCAnonymizer.grpcDialConnect()" )
85+ log .Debug ("Entered GRPCAnonymizer.grpcDialConnect()" )
8686
8787 // Set up a connection to the server:
8888 conn , err := grpc .NewClient (settings .GrpcServerAddress ,
@@ -97,7 +97,7 @@ func (anonymizer *GRPCAnonymizer) grpcDialConnect() bool {
9797
9898 anonymizer .Connection = conn
9999
100- log .Info ("Finished GRPCAnonymizer.grpcDialConnect()" )
100+ log .Debug ("Finished GRPCAnonymizer.grpcDialConnect()" )
101101 return true
102102
103103}
@@ -112,7 +112,7 @@ func (anonymizer *GRPCAnonymizer) grpcInitializeClient() {
112112// in the cache and if it is not it calls grpcAnonymizeID.
113113func (anonymizer * GRPCAnonymizer ) anonymizeToon (toonString string ) (string , bool ) {
114114
115- log .Info ("Entered GRPCAnonymizer.anonymizeToon()" )
115+ log .Debug ("Entered GRPCAnonymizer.anonymizeToon()" )
116116
117117 // Check if the toon is already in cache not to spam the connection with requests:
118118 val , ok := anonymizer .Cache [toonString ]
@@ -130,7 +130,7 @@ func (anonymizer *GRPCAnonymizer) anonymizeToon(toonString string) (string, bool
130130 return "" , false
131131 }
132132 anonymizer .Cache [toonString ] = anonymizedID
133- log .Info ("Finished GRPCAnonymizer.anonymizeToon()" )
133+ log .Debug ("Finished GRPCAnonymizer.anonymizeToon()" )
134134
135135 return anonymizedID , true
136136}
@@ -143,7 +143,7 @@ func grpcGetAnonymizeID(
143143 grpcConnection * grpc.ClientConn ,
144144) (string , bool ) {
145145
146- log .Info ("Entered grpcAnonymize()" )
146+ log .Debug ("Entered grpcAnonymize()" )
147147
148148 // Contact the server and print out its response:
149149 ctx , cancel := context .WithTimeout (context .Background (), time .Second * 10 )
@@ -159,7 +159,7 @@ func grpcGetAnonymizeID(
159159 log .WithField ("gRPC_response" , result .AnonymizedID ).
160160 Debug ("Received anonymized ID for a player." )
161161
162- log .Info ("Finished grpcAnonymize()" )
162+ log .Debug ("Finished grpcAnonymize()" )
163163 return result .AnonymizedID , true
164164}
165165
@@ -198,15 +198,15 @@ func anonymizePlayers(
198198 log .WithField ("toonDescMapAnonymized" , replayData .ToonPlayerDescMap ).
199199 Debug ("Replaced toonDescMap with anonymized version" )
200200
201- log .Info ("Finished anonymizePlayers()" )
201+ log .Debug ("Finished anonymizePlayers()" )
202202 return true
203203}
204204
205205// anonymizeMessageEvents checks against settings.UnusedMessageEvents
206206// and creates a new clean version without specified events.
207207func anonimizeMessageEvents (replayData * replay_data.CleanedReplay ) bool {
208208
209- log .Info ("Entered anonimizeMessageEvents()." )
209+ log .Debug ("Entered anonimizeMessageEvents()." )
210210 var anonymizedMessageEvents []s2prot.Struct
211211 for _ , event := range replayData .MessageEvents {
212212 eventType := event ["evtTypeName" ].(string )
@@ -217,6 +217,6 @@ func anonimizeMessageEvents(replayData *replay_data.CleanedReplay) bool {
217217
218218 replayData .MessageEvents = anonymizedMessageEvents
219219
220- log .Info ("Finished anonymizeMessageEvents()" )
220+ log .Debug ("Finished anonymizeMessageEvents()" )
221221 return true
222222}
0 commit comments