Skip to content

Commit

Permalink
Merge pull request #148 from outout14/main
Browse files Browse the repository at this point in the history
Clabverter : ensure deletion of the old clabverter logging instance before creating a new one
  • Loading branch information
carlmontanari authored May 23, 2024
2 parents d505fe6 + 55b6e7f commit 8d18530
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clabverter/clabverter.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ func MustNewClabverter(

logManager := claberneteslogging.GetManager()

oldClabverterLogger, _ := logManager.GetLogger(clabernetesconstants.Clabverter)
if oldClabverterLogger != nil {
logManager.DeleteLogger(clabernetesconstants.Clabverter)
}

clabverterLogger := logManager.MustRegisterAndGetLogger(
clabernetesconstants.Clabverter,
logLevel,
Expand Down

0 comments on commit 8d18530

Please sign in to comment.