Skip to content

Commit

Permalink
Remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
P3rcy-8685 committed Oct 8, 2023
1 parent 7a42954 commit b2b3760
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion lib/utils/kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,6 @@ func CopyIntoPod(podName string, containerName string, pathInPod string, localFi
return err
}

log.Println("File copied successfully")
log.Println("File copied successfully at " + pathInPod)
return nil
}
2 changes: 0 additions & 2 deletions services/challengedeployerservice/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ func createFolder(challengeName string) (message int, challengePath string) {
func copyChallengeCheckerIntoKissaki(dirPath string, challengeName string) error {
srcFilePath := dirPath + "/" + challengeName + "-challenge-checker"
pathInPod := "/opt/kissaki/kissaki_" + challengeName + ".tar.gz"
log.Println("Testing... sourceFilePath is " + srcFilePath + "....and... pathInPod is " + pathInPod)

if err := utils.CopyIntoPod("kissaki-0", "kissaki", pathInPod, srcFilePath, "katana"); err != nil {
log.Println(err)
Expand All @@ -127,7 +126,6 @@ func copyChallengeCheckerIntoKissaki(dirPath string, challengeName string) error
func copyFlagDataIntoKashira(dirPath string, challengeName string) error {
srcFilePath := dirPath + "/" + "flag-data"
pathInPod := "/opt/kashira/kashira_" + challengeName + ".tar.gz"
log.Println("Testing... sourceFilePath is " + srcFilePath + "....and... pathInPod is" + pathInPod)

if err := utils.CopyIntoPod("kashira-0", "kashira", pathInPod, srcFilePath, "katana"); err != nil {
log.Println(err)
Expand Down

0 comments on commit b2b3760

Please sign in to comment.