Skip to content

Commit

Permalink
feat: update logger configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Nov 30, 2024
1 parent bb61ce4 commit 65a196a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/topics/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ func NewTopicManager(
Company: company,
IssEntityMap: issEntityMap,
IssPeerMap: issPeerMap,
Logger: logger,
Logger: logger.With(
zap.String("company", company),
),
}

manager.Functions = template.FuncMap{
Expand Down Expand Up @@ -121,7 +123,6 @@ func (t *Manager) ParseTopic(topic, iss, sub string, claims map[string]any) *Tem
zap.String("topic", regex.String()),
zap.String("iss", iss),
zap.String("sub", sub),
zap.String("company", t.Company),
)

if regexp.MustCompile(regex.String()).MatchString(topic) {
Expand Down

0 comments on commit 65a196a

Please sign in to comment.