-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
This ticket was split from DRIVERS-2583, please see that ticket for a detailed description.
AC
Consult existing drivers implementations to see exactly how standardized logging is used to log this message / which component- done prior to updating below AC
- Detect Cosmos and DocumentDB servers through hostname string suffix matching at client construction time
- host names matching:
- end with the matching string
- be case insensitive
- check for SRV case as well
- host names matching:
- Use standardized logging to log message at an info level, component set to 'client'
- Only log only once client message at construction
- Add 'client' to MongoLoggableComponents enum
Testing
- Unit test against a hostname with Cosmos or Document DB server patterns
- Ensure case insensitivity
- Ensure that the messages are logged to the client component
- Test with SRV string and non-SRV strings log cases and non-log (genuine host) cases