@@ -105,7 +105,7 @@ func initCacheCleaning() {
105105 case <- t .C :
106106 removedAccessIds , totalAccessIds := accessIdCache .Cleanup ()
107107 if stateCLI .enableDebugFlag {
108- log .Printf ("Removed %d elements from access id cache" , removedAccessIds )
108+ log .Printf ("[DEBUG] Removed %d elements from access id cache" , removedAccessIds )
109109 }
110110 log .Printf ("Elements in access id cache: %d" , totalAccessIds )
111111 }
@@ -241,7 +241,7 @@ func logMiddleware(next http.Handler) http.Handler {
241241
242242 if stateCLI .enableDebugFlag {
243243 if r .URL .RawQuery != "" {
244- logStr += fmt .Sprintf (" %s" , r .URL .RawQuery )
244+ logStr += fmt .Sprintf (" [DEBUG] %s" , r .URL .RawQuery )
245245 }
246246 accessID := extractAccessID (r )
247247 if accessID != "" {
@@ -269,20 +269,20 @@ func accessMiddleware(next http.Handler) http.Handler {
269269 // If access id does not belong to internal crawlers, then check cache or find it in Bugout resources
270270 if accessID == NB_CONTROLLER_ACCESS_ID {
271271 if stateCLI .enableDebugFlag {
272- log .Printf ("Access id belongs to internal crawlers" )
272+ log .Printf ("[DEBUG] Access id belongs to internal crawlers" )
273273 }
274274 currentClientAccess = internalCrawlersAccess
275275 currentClientAccess .dataSource = dataSource
276276 } else if accessIdCache .FindAccessIdInCache (accessID ) != "" {
277277 if stateCLI .enableDebugFlag {
278- log .Printf ("Access id found in cache" )
278+ log .Printf ("[DEBUG] Access id found in cache" )
279279 }
280280 currentClientAccess = accessIdCache .accessIds [accessID ]
281281 currentClientAccess .dataSource = dataSource
282282 accessIdCache .UpdateAccessIdAtCache (accessID , dataSource )
283283 } else {
284284 if stateCLI .enableDebugFlag {
285- log .Printf ("New access id, looking at Brood resources" )
285+ log .Printf ("[DEBUG] New access id, looking at Brood resources" )
286286 }
287287 resources , err := bugoutClient .Brood .GetResources (
288288 NB_CONTROLLER_TOKEN ,
0 commit comments