]> git.tuebingen.mpg.de Git - paraslash.git/commit
Avoid unwanted log messages during startup.
authorAndre Noll <maan@systemlinux.org>
Mon, 1 Apr 2013 22:52:20 +0000 (22:52 +0000)
committerAndre Noll <maan@systemlinux.org>
Thu, 13 Jun 2013 16:29:03 +0000 (18:29 +0200)
commitb01605d7062e4d1f005d5aaaaed158d8efe06d79
tree7bce70a322c27f3956db64ce78ab63cc64854b7e
parent625fdbbafaf3842753bff02b349eaaf9554d846d
Avoid unwanted log messages during startup.

Regardless of the given loglevel, para_recv currently prints log
messages like these at startup:

afh_init: initializing mp3 handler
afh_init: initializing ogg handler
afh_init: initializing aac handler
afh_init: initializing wma handler
afh_init: initializing spx handler
afh_init: initializing flac handler

That's because recv_init() is called before the command line arguments
are parsed, so the loglevel has not been set at this point. Other
programs have similar problems.

Fix these problems by always setting the loglevel right after a parser
has been called so that the init functions run *after* loglevel has
been set.
afh.c
audioc.c
audiod.c
fade.c
filter.c
gui.c
play.c
recv.c
server.c
write.c