Skip to content

Commit

Permalink
chore: [FABG-785] removed unnecessary warning from PKCS11 context handle
Browse files Browse the repository at this point in the history
- closes [FABG-785]

Signed-off-by: sudesh.shetty <[email protected]>
  • Loading branch information
sudeshrshetty authored and troyronda committed Jan 29, 2020
1 parent 8f3d32c commit 5361567
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/core/cryptosuite/common/pkcs11/contextHandle.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ func (handle *ContextHandle) validateSession(currentSession mPkcs11.SessionHandl
logger.Debugf("Validating session[%+v], for any error condition....", currentSession)
e = handle.detectErrorCondition(currentSession)
if e != nil {
logger.Warnf("Found error condition, while validating session [%+v], error:[%v]", currentSession, e)
logger.Debugf("Found error condition, while validating session [%+v], error:[%v]", currentSession, e)
}

switch e {
Expand Down Expand Up @@ -600,6 +600,7 @@ func (handle *ContextHandle) detectErrorCondition(currentSession mPkcs11.Session
if e == nil {
_, e = handle.ctx.GetSessionInfo(currentSession)
if e == nil {
logger.Debugf("Validating operation state for session[%+v]", currentSession)
_, e = handle.ctx.GetOperationState(currentSession)
}
}
Expand Down

0 comments on commit 5361567

Please sign in to comment.