Skip to content

Commit

Permalink
refactor: channel error is not having channel ID in log
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Nov 24, 2023
1 parent 753fb8d commit 998de7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/viewer/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func GetMutex(MutexKey string) *sync.Mutex {

func (v *TaskRefreshChannel) RunTask(worker_id worker_types.WorkerID) worker_types.TaskStatusCode {
channel_info, err := v.api.Discorder.GetDiscordSession().Channel(string(v.channelID))
if logus.CheckError(err, "unable to get channel info") {
if logus.CheckError(err, "unable to get channel info", logus.ChannelID(v.channelID)) {
return worker.CodeFailure
}

Expand Down

0 comments on commit 998de7d

Please sign in to comment.