Hide Forgot
Description of problem: iwhd's log file grows unbound [root@locutus ~]# ls -l /var/log/iwhd.log -rw-r--r--. 1 root root 10121121543 Apr 26 16:41 /var/log/iwhd.log [root@locutus ~]# Version-Release number of selected component (if applicable): iwhd-0.92-1.p1.fc14.x86_64 How reproducible: synchronous Steps to Reproduce: 1. run iwhd Actual results: Logs are not rotated. Expected results: Logs rotated. Additional info:
We need to switch to syslog, because it's impossible to rotate a raw dump of stderr. Also, see bz#698373 for other logging improvements.
Switching to syslog turned out harder than it looked, because there are libraries to consider. For now we are just going to stick to writing to a file, just open it explicitly for the kill -HUP to work.
Created attachment 511839 [details] candidate patch 1
Nice patch Pete. How about a combination of your patch and this little logging API: https://github.com/markmc/iwhd/commit/44c26d5800 That way we at least get timestamps (for #698373) from the error() and DPRINTF() calls
https://fedorahosted.org/pipermail/iwhd-devel/2011-July/000738.html
making sure all the bugs are at the right version for future queries
Verified: [root@qeblade33 ~]# rpm -ql iwhd | grep logrotate /etc/logrotate.d/iwhd [root@qeblade33 ~]# rpm -q iwhd iwhd-0.991-1.el6.x86_64