Skip to content

Commit

Permalink
fix: ensure we properly print out service name
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvrs committed Nov 25, 2024
1 parent 9824a59 commit 8b51dd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
# log files
*.log
# local dev files
assets/
assets/
# local db files
*.db
2 changes: 1 addition & 1 deletion manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (mng *Manager) OnStart(f ManagerStartFunc) {
// This is because the actual guild services will be created using service.Create()
func (mng *Manager) RegisterService(s Service) {
mng.services = append(mng.services, s)
mng.logger.Info(fmt.Sprintf("Registered service '%s'", reflect.TypeOf(s).Name()))
mng.logger.Info(fmt.Sprintf("Registered service '%s'", reflect.TypeOf(s).Elem().Name()))
}

// CreateServices creates a service for a provided guild manager
Expand Down

0 comments on commit 8b51dd6

Please sign in to comment.