[Notes] [Git][BuildGrid/buildgrid][finn/improve-cas-logging] NotFoundError now logged as debug.



Title: GitLab

finn pushed to branch finn/improve-cas-logging at BuildGrid / buildgrid

Commits:

2 changed files:

Changes:

  • buildgrid/server/actioncache/service.py
    ... ... @@ -52,7 +52,7 @@ class ActionCacheService(remote_execution_pb2_grpc.ActionCacheServicer):
    52 52
                 context.set_code(grpc.StatusCode.INVALID_ARGUMENT)
    
    53 53
     
    
    54 54
             except NotFoundError as e:
    
    55
    -            self.logger.info(e)
    
    55
    +            self.logger.debug(e)
    
    56 56
                 context.set_code(grpc.StatusCode.NOT_FOUND)
    
    57 57
     
    
    58 58
             return remote_execution_pb2.ActionResult()
    

  • buildgrid/server/referencestorage/service.py
    ... ... @@ -47,7 +47,8 @@ class ReferenceStorageService(buildstream_pb2_grpc.ReferenceStorageServicer):
    47 47
                 context.set_details(str(e))
    
    48 48
                 context.set_code(grpc.StatusCode.INVALID_ARGUMENT)
    
    49 49
     
    
    50
    -        except NotFoundError:
    
    50
    +        except NotFoundError as e:
    
    51
    +            self.logger.debug(e)
    
    51 52
                 context.set_code(grpc.StatusCode.NOT_FOUND)
    
    52 53
     
    
    53 54
             return buildstream_pb2.GetReferenceResponse()
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]