txoof / PaperPi

E-Paper display loop with plugins
97 stars 10 forks source link

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

Closed txoof closed 1 year ago

txoof commented 1 year ago

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 commented 1 year ago

see commit

txoof commented 1 year ago

resolved in 0256ea2c501765925247f2dd0dee1316c1d518da