-
Notifications
You must be signed in to change notification settings - Fork 316
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Set log format json but not works for git command
To Reproduce
Steps to reproduce the behavior:
just add cli flag with --logformat json
Expected behavior
git command also should output with json format
Additional context
None
Version
v0.17.0
Logs
time="2025-10-30T05:22:43Z" level=info msg=Trace args="[git remote show origin]" dir=/tmp/git-<some-argocd-application>191239555 operation_name="exec git" time_ms=214.585335
{"application":"<some-argocd-application>","level":"info","msg":"resolved remote default branch to 'main' and using that for operations","time":"2025-10-30T05:22:43Z"}
time="2025-10-30T05:22:43Z" level=info msg="git fetch origin main --force --prune --depth 1" dir=/tmp/git-<some-argocd-application>191239555 execID=a6502
time="2025-10-30T05:22:43Z" level=info msg=Trace args="[git fetch origin main --force --prune --depth 1]" dir=/tmp/git-<some-argocd-application>191239555 operation_name="exec git" time_ms=319.240854
time="2025-10-30T05:22:43Z" level=info msg="git checkout --force main" dir=/tmp/git-<some-argocd-application>191239555 execID=317d3
time="2025-10-30T05:22:43Z" level=info msg=Trace args="[git checkout --force main]" dir=/tmp/git-<some-argocd-application>191239555 operation_name="exec git" time_ms=8.699076999999999
time="2025-10-30T05:22:43Z" level=info msg="git clean -ffdx" dir=/tmp/git-<some-argocd-application>191239555 execID=969e3
time="2025-10-30T05:22:43Z" level=info msg=Trace args="[git clean -ffdx]" dir=/tmp/git-<some-argocd-application>191239555 operation_name="exec git" time_ms=1.294031
{"application":"<some-argocd-application>","level":"info","msg":"updating base /tmp/git-<some-argocd-application>191239555/<kustomize-path>","time":"2025-10-30T05:22:43Z"}
{"application":"<some-argocd-application>","level":"info","msg":"Successfully updated the live application spec","time":"2025-10-30T05:22:43Z"}
{"level":"info","msg":"Processing results: applications=25 images_considered=13 images_skipped=12 images_updated=2 errors=6","time":"2025-10-30T05:22:43Z"}
chengfang
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working