Skip to content

Commit

Permalink
reduce logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio1988 committed Jan 16, 2024
1 parent 39d026f commit 325ae30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion decoder/pokestop.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,10 @@ func (stop *Pokestop) updatePokestopFromGetContestDataOutProto(contest *pogo.Con
stop.ShowcasePokemonType = null.IntFromPtr(nil)
} else {
//TODO there is also a Type2 in the Proto
log.Warnf("SHOWCASE: Stop: '%s' with Focussed Pokemon Type 2: %d", stop.Id, int64(focussedPokemonType.GetPokemonType_2()))
type2 := int64(focussedPokemonType.GetPokemonType_2())
if type2 != 0 {
log.Warnf("SHOWCASE: Stop: '%s' with Focussed Pokemon Type 2: %d", stop.Id, type2)
}
stop.ShowcasePokemonType = null.IntFrom(int64(focussedPokemonType.GetPokemonType_1()))
}
}
Expand Down

0 comments on commit 325ae30

Please sign in to comment.