Skip to content

Commit

Permalink
Decrease log level for detection of legacy API tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
doingodswork committed Nov 18, 2020
1 parent 70826e8 commit 480c507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/deflix-stremio/user_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ func decodeUserData(data string, logger *zap.Logger) (userData, error) {
if len(tokenParts) > 2 {
return userData{}, errors.New("legacy userData was not correctly formatted")
}
logger.Warn("A legacy API token is being used", zap.Bool("remote", true))
logger.Info("A legacy API token is being used", zap.Bool("remote", true))
return userData{
RDtoken: tokenParts[0],
RDremote: true,
}, nil
} else if len(data) == 52 && !strings.HasPrefix(data, "eyJ") && !strings.HasPrefix(data, "eyI") {
logger.Warn("A legacy API token is being used", zap.Bool("remote", false))
logger.Info("A legacy API token is being used", zap.Bool("remote", false))
return userData{
RDtoken: data,
RDremote: false,
Expand Down

0 comments on commit 480c507

Please sign in to comment.