Skip to content
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

Merged
merged 9 commits into from
Jul 3, 2024

Conversation

MZC-CSC
Copy link
Contributor

@MZC-CSC MZC-CSC commented Jul 2, 2024

removed all spew.Dump() function (AWS)

@powerkimhub powerkimhub self-requested a review July 2, 2024 07:41
@@ -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" {
Copy link
Member

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" {
Copy link
Member

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • comment line과 동일한 code line이 중복 되는 부분이 많습니다.
  • 자동 수정 과정에서 따라 들어간 것 같습니다.
  • 전반적인 확인 부탁드립니다.

Copy link
Contributor Author

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" {
Copy link
Member

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는 불필요한 부분입니다.
  • 전반적인 확인 부탁 드립니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cblogger.Debug() 함수 체크하여 보완했습니다.

@powerkimhub powerkimhub merged commit 3742942 into cloud-barista:master Jul 3, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants