From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: bug#30649: Cuirass service does not rotate its logs Date: Wed, 28 Feb 2018 17:48:23 +0100 Message-ID: <20180228174823.5fec105f@scratchpost.org> References: <20180228145039.GA4589@jurong> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1er3yd-00038Z-7N for bug-guix@gnu.org; Wed, 28 Feb 2018 10:49:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1er3yY-0000MQ-C4 for bug-guix@gnu.org; Wed, 28 Feb 2018 10:49:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:58010) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1er3yY-0000M6-82 for bug-guix@gnu.org; Wed, 28 Feb 2018 10:49:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1er3yY-0001Nf-0S for bug-guix@gnu.org; Wed, 28 Feb 2018 10:49:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20180228145039.GA4589@jurong> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Andreas Enge Cc: 30649@debbugs.gnu.org Hi Andreas, On Wed, 28 Feb 2018 15:50:39 +0100 Andreas Enge wrote: > $ ll /var/log/c* > -rw-r--r-- 1 root root 2003521 Feb 28 15:38 /var/log/cuirass.log > > I am sure this 2MB file was about 14MB big this morning, and indeed > any information dating from before this morning, when I rebooted the > machine and thus restarted the service, has gone. > > Notice also that there are no numbered files cuirass.log.1 etc.. The simplest and best way to fix that is to make cuirass use syslog. Not every program has to have its own private logging implementation, log rotator, log filterting, log rate limiter, kitchen sink etc. src/cuirass/logging.scm is prepared somewhat for this possiblity[2], but it doesn't yet log to syslog. There are guile syslog bindings[1] and we should use them and then apply a two-line patch to src/cuirass/logging.scm . [1] http://puszcza.gnu.org.ua/software/gamma/manual/html_section/Syslog.html [2] Replace current-logging-procedure