solo-io / wasm

Web Assembly tools and SDKs for extending cloud-native infrastructure
Apache License 2.0
306 stars 40 forks source link

reduce the unused log in terminal output #254

Closed tanjunchen closed 3 years ago

tanjunchen commented 3 years ago

I deploy the Wasme Operator according to this doc,but i found that there are many repeated log of pod wasme-cache-nbkx5.

[root@mesh-10-20-11-190 wasme]# kubectl get pods -n wasme
NAME                              READY   STATUS    RESTARTS   AGE
wasme-cache-nbkx5                 1/1     Running   0          51m
wasme-operator-59cfd7674d-msmsv   1/1     Running   0          50m

the output like

time="2021-04-03T14:37:15Z" level=info msg="pulling ref webassemblyhub.io/tanjunchen20/add-header:v0.1"
time="2021-04-03T14:37:15Z" level=info msg="writing image to /var/local/lib/wasme-cache/0295d929353976266ab721389ec859b2fe012d63ce2e58815469ab85c123b510"
time="2021-04-03T14:37:15Z" level=info msg="pulling ref webassemblyhub.io/sodman/istio-1-7:v0.3"
time="2021-04-03T14:37:15Z" level=info msg="writing image to /var/local/lib/wasme-cache/d2bc5bea58499684981fda875101ac18a69923cea4a4153958dad08065aa1e74"
time="2021-04-03T14:37:17Z" level=info msg="detected refs [webassemblyhub.io/tanjunchen20/add-header:v0.1 webassemblyhub.io/sodman/istio-1-7:v0.3]"
time="2021-04-03T14:37:17Z" level=info msg="pulling ref webassemblyhub.io/tanjunchen20/add-header:v0.1"
time="2021-04-03T14:37:17Z" level=info msg="writing image to /var/local/lib/wasme-cache/0295d929353976266ab721389ec859b2fe012d63ce2e58815469ab85c123b510"
time="2021-04-03T14:37:17Z" level=info msg="pulling ref webassemblyhub.io/sodman/istio-1-7:v0.3"
time="2021-04-03T14:37:17Z" level=info msg="writing image to /var/local/lib/wasme-cache/d2bc5bea58499684981fda875101ac18a69923cea4a4153958dad08065aa1e74"
time="2021-04-03T14:37:19Z" level=info msg="detected refs [webassemblyhub.io/tanjunchen20/add-header:v0.1 webassemblyhub.io/sodman/istio-1-7:v0.3]"
time="2021-04-03T14:37:19Z" level=info msg="pulling ref webassemblyhub.io/tanjunchen20/add-header:v0.1"
time="2021-04-03T14:37:19Z" level=info msg="writing image to /var/local/lib/wasme-cache/0295d929353976266ab721389ec859b2fe012d63ce2e58815469ab85c123b510"
time="2021-04-03T14:37:19Z" level=info msg="pulling ref webassemblyhub.io/sodman/istio-1-7:v0.3"
time="2021-04-03T14:37:19Z" level=info msg="writing image to /var/local/lib/wasme-cache/d2bc5bea58499684981fda875101ac18a69923cea4a4153958dad08065aa1e74"

I suggest not to output these duplicate logs (approximately once every two seconds). These logs are not really important to us. The important ones are update logs, error logs, etc.