Skip to content

Commit

Permalink
log cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NorseGaud committed Aug 14, 2024
1 parent acf3c81 commit 0969006
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions internal/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ func Plugin(workerCtx context.Context, serviceCtx context.Context, serviceCancel
for {
select {
case <-serviceCtx.Done():
logger.InfoContext(serviceCtx, "context cancelled before service started")
serviceCancel()
return
default:
// notify the main thread that the service has started
select {
case <-firstServiceStarted:
logger.InfoContext(serviceCtx, "first service started")
default:
close(firstServiceStarted)
}
Expand Down
1 change: 0 additions & 1 deletion plugins/controllers/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,6 @@ func Run(workerCtx context.Context, serviceCtx context.Context, serviceCancel co
// notify the main thread that the service has started
select {
case <-firstServiceStarted:
logger.InfoContext(serviceCtx, "first service started")
default:
close(firstServiceStarted)
}
Expand Down
3 changes: 1 addition & 2 deletions plugins/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,7 @@ func cleanup(
}

func Run(workerCtx context.Context, serviceCtx context.Context, serviceCancel context.CancelFunc, logger *slog.Logger) {
fmt.Println(" ====================================================== ")
logger.InfoContext(serviceCtx, "github plugin checking for jobs")
logger.InfoContext(serviceCtx, "checking for jobs....")

service := config.GetServiceFromContext(serviceCtx)

Expand Down

0 comments on commit 0969006

Please sign in to comment.