Skip to content

Commit

Permalink
Removed debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SebiWrn committed Apr 29, 2024
1 parent 595bb0d commit ee3f926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ func (r progressRoutes) saveProgress(c *gin.Context) {

watchedToLastSilence := false

logger.Debug("Save progress")
//logger.Debug("Save progress")

Check failure on line 127 in api/progress.go

View workflow job for this annotation

GitHub Actions / lint (./worker)

commentFormatting: put a space between `//` and comment text (gocritic)
duration := stream.Duration.Int32
if duration == 0 {
dur := stream.End.Sub(stream.Start)
duration += int32(dur.Seconds()) + int32(dur.Minutes())*60 + int32(dur.Minutes())*60*60
}
logger.Debug("Duration", "duration", duration)
//logger.Debug("Duration", "duration", duration)

Check failure on line 133 in api/progress.go

View workflow job for this annotation

GitHub Actions / lint (./worker)

commentFormatting: put a space between `//` and comment text (gocritic)
if duration != 0 {
lastSilence := slices.MaxFunc(stream.Silences, func(silence model.Silence, other model.Silence) int {
return int(silence.End) - int(other.End)
Expand Down

0 comments on commit ee3f926

Please sign in to comment.