Skip to content
Snippets Groups Projects
Commit 05adf9e1 authored by Gospodin Bodurov's avatar Gospodin Bodurov
Browse files

Remove repeating log

parent 82691d71
No related branches found
No related tags found
No related merge requests found
...@@ -84,8 +84,6 @@ func authenticateClient(ctx context.Context, s *handler.KeyStorageServerImpl, in ...@@ -84,8 +84,6 @@ func authenticateClient(ctx context.Context, s *handler.KeyStorageServerImpl, in
} }
} }
log.Printf("authenticated uuid: %s", clientAuth.Uuid)
return clientAuth.Uuid, nil return clientAuth.Uuid, nil
} }
return "", fmt.Errorf("missing credentials") return "", fmt.Errorf("missing credentials")
...@@ -94,7 +92,6 @@ func authenticateClient(ctx context.Context, s *handler.KeyStorageServerImpl, in ...@@ -94,7 +92,6 @@ func authenticateClient(ctx context.Context, s *handler.KeyStorageServerImpl, in
// unaryInterceptor call authenticateClient with current context // unaryInterceptor call authenticateClient with current context
func unaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler1 grpc.UnaryHandler) (interface{}, error) { func unaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler1 grpc.UnaryHandler) (interface{}, error) {
s, ok := info.Server.(*handler.KeyStorageServerImpl) s, ok := info.Server.(*handler.KeyStorageServerImpl)
log.Println("Invoked method: " + info.FullMethod)
if !ok { if !ok {
return nil, fmt.Errorf("unable to cast server") return nil, fmt.Errorf("unable to cast server")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment