guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: services: cuirass: Log web interface to separate file.


From: guix-commits
Subject: 02/02: services: cuirass: Log web interface to separate file.
Date: Thu, 29 Aug 2019 02:07:41 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 3e7a62e2e40fc575d161e4c06ea2e333ab7df3b3
Author: Ricardo Wurmus <address@hidden>
Date:   Thu Aug 29 08:04:21 2019 +0200

    services: cuirass: Log web interface to separate file.
    
    * gnu/services/cuirass.scm (<cuirass-configuration>): Add web-log-file 
field.
    (cuirass-shepherd-service): Read it and use it.
    * doc/guix.texi (Continuous Integration): Document it.
---
 doc/guix.texi            | 3 +++
 gnu/services/cuirass.scm | 7 +++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 707c2ba..5a64b89 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -21387,6 +21387,9 @@ Data type representing the configuration of Cuirass.
 @item @code{log-file} (default: @code{"/var/log/cuirass.log"})
 Location of the log file.
 
+@item @code{web-log-file} (default: @code{"/var/log/cuirass-web.log"})
+Location of the log file used by the web interface.
+
 @item @code{cache-directory} (default: @code{"/var/cache/cuirass"})
 Location of the repository cache.
 
diff --git a/gnu/services/cuirass.scm b/gnu/services/cuirass.scm
index 138a5cf..7bd43cd 100644
--- a/gnu/services/cuirass.scm
+++ b/gnu/services/cuirass.scm
@@ -3,7 +3,7 @@
 ;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <address@hidden>
 ;;; Copyright © 2017 Mathieu Othacehe <address@hidden>
 ;;; Copyright © 2017 Jan Nieuwenhuizen <address@hidden>
-;;; Copyright © 2018 Ricardo Wurmus <address@hidden>
+;;; Copyright © 2018, 2019 Ricardo Wurmus <address@hidden>
 ;;; Copyright © 2018 Clément Lassieur <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -52,6 +52,8 @@
                     (default cuirass))
   (log-file         cuirass-configuration-log-file ;string
                     (default "/var/log/cuirass.log"))
+  (web-log-file     cuirass-configuration-web-log-file ;string
+                    (default "/var/log/cuirass-web.log"))
   (cache-directory  cuirass-configuration-cache-directory ;string (dir-name)
                     (default "/var/cache/cuirass"))
   (ttl              cuirass-configuration-ttl     ;integer
@@ -83,6 +85,7 @@
    (cuirass-configuration? config)
    (let ((cuirass          (cuirass-configuration-cuirass config))
          (cache-directory  (cuirass-configuration-cache-directory config))
+         (web-log-file     (cuirass-configuration-web-log-file config))
          (log-file         (cuirass-configuration-log-file config))
          (user             (cuirass-configuration-user config))
          (group            (cuirass-configuration-group config))
@@ -140,7 +143,7 @@
 
                       #:user #$user
                       #:group #$group
-                      #:log-file #$log-file))
+                      #:log-file #$web-log-file))
             (stop #~(make-kill-destructor)))))))
 
 (define (cuirass-account config)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]