Skip to content

Commit f9089d2

Browse files
authored
Update reliability.cr to remove unnecessary log output
Removing dev logging output using puts or replacing with Log.info where needed. ref: #1974
1 parent 5a8da5d commit f9089d2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/tasks/workload/reliability.cr

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,10 @@ task "pod_delete", ["install_litmus"] do |t, args|
418418
if spec_labels.as_h.has_key?(key) && spec_labels[key] == value
419419
current_pod_key = key
420420
current_pod_value = value
421-
puts "Match found for key: #{key} and value: #{value}"
421+
Log.info { "Match found for key: #{key} and value: #{value}" }
422422
true
423423
else
424-
puts "Match not found for key: #{key} and value: #{value}"
424+
Log.info { "Match not found for key: #{key} and value: #{value}" }
425425
false
426426
end
427427
end
@@ -432,9 +432,7 @@ task "pod_delete", ["install_litmus"] do |t, args|
432432

433433
if test_passed
434434
Log.info { "Running for: #{spec_labels}"}
435-
puts "Running for: #{spec_labels}"
436435
Log.info { "Spec Hash: #{args.named["pod_labels"]?}" }
437-
puts "Spec Hash: #{args.named["pod_labels"]?}"
438436
if args.named["offline"]?
439437
Log.info { "install resilience offline mode" }
440438
AirGap.image_pull_policy("#{OFFLINE_MANIFESTS_PATH}/pod-delete-experiment.yaml")
@@ -488,9 +486,7 @@ task "pod_delete", ["install_litmus"] do |t, args|
488486
).to_s
489487
end
490488

491-
puts "template: #{template}"
492489
Log.info { "template: #{template}" }
493-
494490
File.write("#{destination_cnf_dir}/#{chaos_experiment_name}-chaosengine.yml", template)
495491
KubectlClient::Apply.file("#{destination_cnf_dir}/#{chaos_experiment_name}-chaosengine.yml")
496492
LitmusManager.wait_for_test(test_name,chaos_experiment_name,total_chaos_duration,args, namespace: app_namespace)

0 commit comments

Comments
 (0)