Skip to content

Commit

Permalink
Logging improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
drichelson committed May 26, 2024
1 parent b5fc4e6 commit d5679fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/dorkly/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,12 @@ func reconcile(old, new RelayArchive) (RelayArchive, error) {
func runStep(step string, f func() error) error {
//fmt.Printf("\n[%s] BEGIN\n", step)
fmt.Printf("::group::%s\n", step)
logger.Infof("Starting step: %s", step)
err := f()
//if err != nil {
// fmt.Printf("[%s] ERROR: %v\n", step, err)
//}
logger.Infof("Ending step: %s", step)
fmt.Printf("::endgroup::\n")
//fmt.Printf("[%s] END\n", step)
return err
Expand Down

0 comments on commit d5679fb

Please sign in to comment.