Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Reduce log level of unhelpful logs and allow for dynamic control of acorn log level log level of acorn #752

Closed
cjellick opened this issue Oct 6, 2022 · 2 comments
Assignees
Labels
kind/enhancement New feature or request
Milestone

Comments

@cjellick
Copy link
Member

cjellick commented Oct 6, 2022

This enhancement is a two parter:

time="2023-06-12T22:46:09Z" level=info msg="Handling [acorn-image-system/registry] [/v1, Kind=Service]"
time="2023-06-12T22:46:09Z" level=info msg="Triggering [acorn-system/acorn-config] [/v1, Kind=ConfigMap] from [acorn-image-system/registry] [/v1, Kind=Service]"

These logs live in mink, I believe.

@cjellick cjellick added the kind/enhancement New feature or request label Oct 6, 2022
@cjellick cjellick added this to the Backlog milestone Oct 6, 2022
@cjellick cjellick changed the title Control log level of acorn Reduce log level of unhelpful logs and allow for dynamic control of acorn log level log level of acorn Jun 12, 2023
@cjellick cjellick modified the milestones: Backlog, v0.8.0 Jun 12, 2023
@g-linville g-linville self-assigned this Jun 28, 2023
g-linville added a commit that referenced this issue Jul 6, 2023
@g-linville
Copy link
Contributor

It should now be possible to shell into the Runtime apiserver and controller and run loglevel --set <level> to change the log level without restarting the pod.

@sangee2004
Copy link
Contributor

Tested with acorn version - v0.8.0-alpha7-131-g4bf05b4d+4bf05b4d

  1. Able to change log levels by executing the following command within the controller and api-server pods

kubectl exec acorn-controller-7cc79ddc88-2f5td -n acorn-system -- loglevel --set debug
kubectl exec acorn-api-55494b75d5-62msg -n acorn-system -- loglevel --set debug

  1. Following logs are now logged in "debug" level:
time="2023-07-20T21:00:48Z" level=debug msg="Handling trigger [acorn-image-system/registry] [apps/v1, Kind=Deployment]"
time="2023-07-20T21:00:48Z" level=debug msg="Triggering [acorn-system/acorn-config] [/v1, Kind=ConfigMap] from [lima-rancher-desktop] [/v1, Kind=Node]"

cloudnautique pushed a commit to cloudnautique/runtime that referenced this issue Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants