From 480c507f7f92fb4fcba5946c09ecab98178280a5 Mon Sep 17 00:00:00 2001 From: doingodswork Date: Wed, 18 Nov 2020 17:46:02 +0100 Subject: [PATCH] Decrease log level for detection of legacy API tokens --- cmd/deflix-stremio/user_data.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/deflix-stremio/user_data.go b/cmd/deflix-stremio/user_data.go index defa9ad..f3bb9dc 100644 --- a/cmd/deflix-stremio/user_data.go +++ b/cmd/deflix-stremio/user_data.go @@ -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,