Add opt save global log output to file (#2115)

close  #1933

---------
*Sponsored by Kithara Software GmbH*
This commit is contained in:
6543
2023-08-07 20:47:30 +02:00
committed by GitHub
parent 0b5f1a7c0d
commit 3d4758578a
12 changed files with 158 additions and 121 deletions

View File

@@ -2,9 +2,9 @@ package rpc
import (
"context"
"log"
"time"
"github.com/rs/zerolog/log"
"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
)
@@ -93,7 +93,7 @@ func (interceptor *AuthInterceptor) refreshToken() error {
}
interceptor.accessToken = accessToken
log.Printf("Token refreshed: %v", accessToken)
log.Debug().Msgf("Token refreshed: %v", accessToken)
return nil
}