-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AWS] Resolve Issue : Remove Print Statements and Check Log Level #1207 #1222
Conversation
…240531_synn # Conflicts: # cloud-control-manager/cloud-driver/drivers/aws/resources/ClusterHandler.go
…40531_synn Issue 1207 fmt logger change 20240531 synn
@@ -204,7 +203,7 @@ func ConvertToString(value interface{}) (string, error) { | |||
// Cloud Object를 CB-KeyValue 형식으로 변환이 필요할 경우 이용 | |||
func ConvertKeyValueList(v interface{}) ([]irs.KeyValue, error) { | |||
if cblogger.Level.String() == "debug" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- cblogger.Debug() 함수 자체가 Log Level이 debug일 때만, 출력 되므로
- level check는 불필요한 부분입니다.
@@ -199,7 +198,8 @@ func ExtractImageDescribeInfo(image *ecs.Image) irs.ImageInfo { | |||
//*ecs.DescribeImagesResponse | |||
if cblogger.Level.String() == "debug" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cblogger.Debug() 함수 자체가 Log Level이 debug일 때만, 출력 되므로
level check는 불필요한 부분입니다.
@@ -31,7 +30,7 @@ type AlibabaKeyPairHandler struct { | |||
func (keyPairHandler *AlibabaKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error) { | |||
cblogger.Debug("Start ListKey()") | |||
var keyPairList []*irs.KeyPairInfo | |||
//spew.Dump(keyPairHandler) | |||
//cblogger.Debug(keyPairHandler) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- comment line과 동일한 code line이 중복 되는 부분이 많습니다.
- 자동 수정 과정에서 따라 들어간 것 같습니다.
- 전반적인 확인 부탁드립니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spew.Dump 처리했습니다.
@@ -134,7 +133,8 @@ func (securityHandler *AlibabaSecurityHandler) AddRules(securityIID irs.IID, req | |||
cblogger.Infof("securityGroupId : [%s] / securityRuleInfos : [%v]", securityGroupId, reqSecurityRules) | |||
//cblogger.Info("AuthorizeSecurityRules ", securityRuleInfos) | |||
if cblogger.Level.String() == "debug" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- cblogger.Debug() 함수 자체가 Log Level이 debug일 때만, 출력 되므로
- level check는 불필요한 부분입니다.
- 전반적인 확인 부탁 드립니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cblogger.Debug() 함수 체크하여 보완했습니다.
removed all spew.Dump() function (AWS)