weaviate-python-client
weaviate-python-client copied to clipboard
Add configurable HTTP and gRPC request logging
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