[pkg-wicd-maint] Bug#911184: wicd-daemon: Please make log file location configurable

Dmitry Bogatov KAction at gnu.org
Wed Oct 17 17:00:39 BST 2018


[2018-10-17 02:30] Axel Beckert <abe at debian.org>
> Hi Dmitry,

Hi, Axel

> > please make log file location configurable at run time.
> > 
> > In most cases, daemons have option to specify log file location, and
> > providing /dev/stdout fulfils my needs. Wicd, on other hand have path
> > to log file hardcoded in setup.py.
> 
> There is indeed a directory path (not file path!) in setup.py, but the
> hardcoded file name is actually in wicd/wicd-daemon.py.
> 
> Then again, wicd/logfile.py seems to have already support for logging
> to stdout or stderr.
> 
> And as I read the code from wicd/wicd-daemon.py lines 1803 to 1827 and
> lines 1882 to 1905, starting the daemon with the option --no-stdout
> (sic!) should do what you want. Alternatively try --no-stderr
> 
> Can you check if these options already help for your needs?

Not exactly. There are two kind of data, that is stored in
/var/log/wicd/wicd.log:

 * stdout/stderr from subprocessed, that wicd executes
 * messages from wicd proper like 'Autoconnecting...'

If I specify --no-{stdout,stderr}, first group of messages will indeed
go to standard streams of wicd, but messages from wicd proper will go
to /var/log/wicd/wicd.log nevertheless.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-wicd-maint/attachments/20181017/be0de2bd/attachment.sig>


More information about the pkg-wicd-maint mailing list