weaviate-python-client icon indicating copy to clipboard operation
weaviate-python-client copied to clipboard

Add configurable HTTP and gRPC request logging

Open ctindel opened this issue 1 year ago • 0 comments

Environment Variable-Based HTTP Request/Response Logging

Key Changes:

  • Simplified logging implementation to use WEAVIATE_LOG_LEVEL environment variable
  • Removed custom logger approach completely
  • Improved sensitive header masking for security
  • Added comprehensive test coverage
  • Cleaned up code:
    • Removed debug print statements
    • Removed unnecessary imports
    • Added grpc-stubs and removed unnecessary type ignore comments

Test Coverage:

  • Default logging behavior (INFO level)
  • Debug logging with sensitive header masking
  • Concurrent request logging
  • Invalid log level handling
  • gRPC request/response logging

ctindel avatar Mar 02 '25 20:03 ctindel