Skip to content

Commit

Permalink
removing some log in sync.go file
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Fuix committed Feb 13, 2024
1 parent ed54eae commit 7c25257
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions controller/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ func (m *appStateManager) SyncAppState(appProject *v1alpha1.AppProject, app *v1a
// concrete git commit SHA, the SHA is remembered in the status.operationState.syncResult field.
// This ensures that when resuming an operation, we sync to the same revision that we initially
// started with.
logCtx := log.WithFields(log.Fields{"application": app.Name, "appNamespace": app.Namespace, "project": app.Spec.Project})
logCtx.Infof("Entrer dans la fonction: %s", appProject.Name)
var revision string
var syncOp v1alpha1.SyncOperation
var syncRes *v1alpha1.SyncOperationResult
Expand All @@ -101,9 +99,6 @@ func (m *appStateManager) SyncAppState(appProject *v1alpha1.AppProject, app *v1a
}
syncOp = *state.Operation.Sync

logCtx.Infof("In the SyncAppState: %s", appProject.Name)
logCtx.Infof("If Argo found SharedFail: %t", projectSyncOp.HasOption("FailOnSharedResource=true"))

// validates if it should fail the sync if it finds shared resources
hasSharedResource, sharedResourceMessage := hasSharedResourceCondition(app)
if (syncOp.SyncOptions.HasOption("FailOnSharedResource=true") || (projectSyncOp != nil && projectSyncOp.HasOption("FailOnSharedResource=true"))) &&
Expand Down

0 comments on commit 7c25257

Please sign in to comment.