Skip to content
Snippets Groups Projects
Commit 4a552551 authored by Alexander Holodov's avatar Alexander Holodov
Browse files

11 added logs

parent 29e6848e
Branches devops22-code-cleanup
No related tags found
1 merge request!3711 fix panic
......@@ -95,6 +95,7 @@ func (s *KeyStorageServerImpl) GetKey(ctx context.Context, in *api.GetKeyRequest
data, err := client.DoGetDataCall("keys", in.Uuid+"/"+api.KeyType.String(in.KeyType))
if err != nil {
log.Printf("grpc call DoGetDataCall to DataStorage failed: %s", err)
getKeyResponse.Key = nil
getKeyResponse.StatusList = utils.AddStatus(getKeyResponse.StatusList,
"500", api.StatusType_ERROR, err.Error())
......@@ -136,6 +137,7 @@ func (s *KeyStorageServerImpl) SetKey(ctx context.Context, in *api.SetKeyRequest
data, err := client.DoGetDataCall("keys", in.Uuid+"/"+api.KeyType.String(in.KeyType))
if err != nil {
log.Printf("grpc call DoGetDataCall to DataStorage failed: %s", err)
setKeyResponse.StatusList = utils.AddStatus(setKeyResponse.StatusList,
"500", api.StatusType_ERROR, err.Error())
return setKeyResponse, nil
......
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