Skip to content

Commit 9beee4c

Browse files
feat: better logging support
1 parent 46f1470 commit 9beee4c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

controller/state.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ func (m *appStateManager) CompareAppState(app *v1alpha1.Application, project *v1
562562
manifestRevisions := make([]string, 0)
563563

564564
for _, manifestInfo := range manifestInfos {
565+
logCtx.Infof("Manifest for revision %s has been generated", manifestInfo.Revision)
565566
manifestRevisions = append(manifestRevisions, manifestInfo.Revision)
566567
}
567568

reposerver/repository/repository.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,7 @@ func GenerateManifests(ctx context.Context, appPath, repoRoot, revision string,
14431443
if q.ApplicationSource.Plugin != nil {
14441444
pluginName = q.ApplicationSource.Plugin.Name
14451445
}
1446+
log.Infof("running plugin sidecar for app %s, revision %s", q.AppName, q.Revision)
14461447
// if pluginName is provided it has to be `<metadata.name>-<spec.version>` or just `<metadata.name>` if plugin version is empty
14471448
manifests, err = runConfigManagementPluginSidecars(ctx, appPath, repoRoot, pluginName, env, q, q.Repo.GetGitCreds(gitCredsStore), opt.cmpTarDoneCh, opt.cmpTarExcludedGlobs)
14481449
if err != nil {

util/git/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ func (m *nativeGitClient) lsRemote(revision string) (string, error) {
592592
//log.Debugf("%s\t%s", hash, refName)
593593
if ref.Name().Short() == revision || refName == revision {
594594
if ref.Type() == plumbing.HashReference {
595-
log.Debugf("revision '%s' resolved to '%s'", revision, hash)
595+
log.Infof("revision '%s' resolved to '%s'", revision, hash)
596596
return hash, nil
597597
}
598598
if ref.Type() == plumbing.SymbolicReference {

0 commit comments

Comments
 (0)