-
Type: Task
-
Status: Resolved (View Workflow)
-
Priority: Medium
-
Resolution: Fixed
-
Affects Version/s: VOLTHA v2.4
-
Fix Version/s: VOLTHA v2.5
-
Component/s: ofagent-go, openolt-adapter, rw-core, voltctl, voltha-lib-go
-
Labels:
-
Story Points:3
-
Epic Link:
To ensure passing context in each logger call and thus contribute to log correlation, switch completely to Context Logger across the complete code. Also,
- Remove all the public log methods in log_classic.go; they force stacktrace walk-through for lookup of right logger instance which degrades performance.
- Mark Logger instance as Depreciated; can't remove it yet as it is being used by openonu adapter go version.
- Also introduce a logger instance in log package and use it instead of default logger. It will allow better control of log level of that package.
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
20166,2 | [VOL-3424] Switch completely to Context based Logger instance | master | voltha-lib-go | Status: MERGED | +2 | +1 |
20167,1 | [VOL-3424] Switch completely to Context based Logger instance | master | voltha-go | Status: MERGED | +2 | +1 |
20168,1 | [VOL-3424] Switch completely to Context based Logger instance | master | ofagent-go | Status: MERGED | +2 | +1 |
20169,3 | [VOL-3424] Switch completely to Context based Logger instance | master | voltha-openolt-adapter | Status: MERGED | +2 | +1 |