Skip to content

Commit

Permalink
add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
codeinuit committed May 12, 2024
1 parent 79bd069 commit 497cfaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/shibesbot/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ func (sb *Shibesbot) initDiscord() error {
return err
}

sb.log.Debug("updating Discord command list")

Check failure on line 72 in cmd/shibesbot/discord.go

View workflow job for this annotation

GitHub Actions / Build and test

sb.log.Debug undefined (type logger.Logger has no field or method Debug)

Check failure on line 72 in cmd/shibesbot/discord.go

View workflow job for this annotation

GitHub Actions / lint

sb.log.Debug undefined (type logger.Logger has no field or method Debug)

Check failure on line 72 in cmd/shibesbot/discord.go

View workflow job for this annotation

GitHub Actions / Build and test

sb.log.Debug undefined (type logger.Logger has no field or method Debug)
for _, cmd := range commands {
_, err := sb.session.ApplicationCommandCreate(sb.session.State.User.ID, "", cmd)
if err != nil {
sb.log.Debugf("adding command %s", cmd.Name)

Check failure on line 74 in cmd/shibesbot/discord.go

View workflow job for this annotation

GitHub Actions / Build and test

sb.log.Debugf undefined (type logger.Logger has no field or method Debugf)

Check failure on line 74 in cmd/shibesbot/discord.go

View workflow job for this annotation

GitHub Actions / lint

sb.log.Debugf undefined (type logger.Logger has no field or method Debugf)

Check failure on line 74 in cmd/shibesbot/discord.go

View workflow job for this annotation

GitHub Actions / Build and test

sb.log.Debugf undefined (type logger.Logger has no field or method Debugf)
if _, err := sb.session.ApplicationCommandCreate(sb.session.State.User.ID, "", cmd); err != nil {
return err
}
}
Expand Down

0 comments on commit 497cfaf

Please sign in to comment.