thin-edge.io icon indicating copy to clipboard operation
thin-edge.io copied to clipboard

Improve 'system config file doesn't exist' log message

Open k-butz opened this issue 1 year ago • 1 comments

Is your feature improvement request related to a problem? Please describe. When doing tedge connect c8y, first-time tedge users are regularly stumbling over log line "The system config file '/etc/tedge/system.toml' doesn't exist. Use '/bin/systemctl' as a service manager" and ask what's the problem and how to fix it. So this log is interpreted as warning/error while it's actually just an info and nothing to worry about.

$ sudo tedge reconnect c8y
The system config file '/etc/tedge/system.toml' doesn't exist. Use '/bin/systemctl' as a service manager.

Describe the solution you'd like Mentioned log line could be rephrased to make clear: this is not an error to worry about and just an information.

Describe alternatives you've considered Maybe it makes sense to print a log severity to the messages on console?

k-butz avatar Mar 26 '24 12:03 k-butz

I propose to replace this message by:

Using '/bin/systemctl' as no 'init' system has been configured in '/etc/tedge/system.toml'

didier-wenzek avatar Mar 28 '24 09:03 didier-wenzek

This change was included as part of 1.1.0.

The following is the new message displayed to the user.

The system config file '/etc/tedge/system.toml' doesn't exist. Using '/bin/systemctl' as the default service manager

reubenmiller avatar May 30 '24 07:05 reubenmiller