[2018-10-17 02:30] Axel Beckert <a...@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.

Attachment: pgp6NYrqvc1pl.pgp
Description: PGP signature

Reply via email to