Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show in log headers if running in daemon or user mode #73

Closed
txoof opened this issue Dec 10, 2022 · 2 comments
Closed

Show in log headers if running in daemon or user mode #73

txoof opened this issue Dec 10, 2022 · 2 comments
Labels
good first issue Good for newcomers Work To Do Work that needs to be done

Comments

@txoof
Copy link
Owner

txoof commented Dec 10, 2022

The log header should indicate if PaperPi is running in daemon or user mode. It's possible to infer this from the log line, but it would be nice to see which mode is being used:

$ sudo /usr/local/bin/paperpi -d
12:52:17 paperpi :get_config_files:251 :INFO       - using configuration files to configure PaperPi: [PosixPath('/usr/local/paperpi/config/paperpi.ini'), **PosixPath('/etc/default/paperpi.ini')]**

could read:

$ sudo /usr/local/bin/paperpi -d
12:52:16 paperpi: main:123 :INFO starting in DAEMON mode with option -d
12:52:17 paperpi :get_config_files:251 :INFO       - using configuration files to configure PaperPi: [PosixPath('/usr/local/paperpi/config/paperpi.ini'), PosixPath('/etc/default/paperpi.ini')]
@txoof txoof added good first issue Good for newcomers Work To Do Work that needs to be done labels Jun 19, 2023
@txoof
Copy link
Owner Author

txoof commented Jun 23, 2023

see commit

@txoof
Copy link
Owner Author

txoof commented Jul 25, 2023

resolved in 0256ea2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers Work To Do Work that needs to be done
Projects
None yet
Development

No branches or pull requests

1 participant