Skip to content

[FIX] : Fix logging system to reduce verbosity and improve clarity #50

@LorenzoTettamanti

Description

@LorenzoTettamanti

Description of the Problem

The current logging system provides excessive details, leading to distractions and making it harder to focus while debugging.

Example of current output

2025-02-03T13:14:45.131504Z  INFO update_corefile{cfg=EdgeDNSConfig { enable: true, listen_interface: "lo", listen_port: 53, kube_api_config: Some(KubeApiConfig { master: Some("127.0.0.1:54616"), content_type: Some("application/vnd.kubernetes.protobuf"), qps: 50, burst: 100, kube_config: Some("~/.kube/config"), meta_server: None, delete_kube_config: false }), cache_dns: Some(CacheDNS { enable: true, auto_detect: true, upstream_servers: [], cache_ttl: 20 }) }}: 
Auto detecting servers

Target output:

2025-02-03T13:14:45.131504Z  INFO: Auto detecting servers

Additional information:

The logging system is entirely built with the rust crates tracing and tracing_subscriber.
Docs:

Metadata

Metadata

Labels

code refactoringCode refactoringgood first issueGood for newcomershelp wantedExtra attention is neededrustPull requests that update Rust code

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions