argoproj / argo-workflows

Workflow Engine for Kubernetes
https://argo-workflows.readthedocs.io/
Apache License 2.0
15.08k stars 3.2k forks source link

suppress some server logs #10496

Closed tooptoop4 closed 2 weeks ago

tooptoop4 commented 1 year ago

i am interested in most logs like who logged in and what they clicked on but want to suppress these:

time="2023-02-10T04:04:06.868Z" level=info duration="108.602µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:26.868Z" level=info duration="99.842µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:26.868Z" level=info duration="76.141µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:45.138Z" level=info duration="100.382µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:45.463Z" level=info duration="106.572µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:46.478Z" level=info duration="100.362µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:46.531Z" level=info duration="100.941µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:46.868Z" level=info duration="107.773µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:47.102Z" level=info duration="97.922µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:47.283Z" level=info duration="103.831µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:53.071Z" level=info duration="212.254µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:53.819Z" level=info duration="94.782µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:55.440Z" level=info duration="339.266µs" method=GET path=index.html size=473 status=0

https://github.com/argoproj/argo-workflows/blob/a681b3bd73d4d8d01be697af06b18594b94180ca/server/apiserver/accesslog/interceptor.go#L23