From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id wIujKVqMUGbLWAAAA41jLg (envelope-from ) for ; Fri, 24 May 2024 14:47:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 0J0PI1qMUGZORgAA62LTzQ (envelope-from ) for ; Fri, 24 May 2024 14:47:22 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=jeoe+eFI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716554842; a=rsa-sha256; cv=none; b=MUkDXaecYa/Lk7KIu1/fQs0XdAZan3bafevmEFfEpVJ/UZIziINk8S67QCmJV7/+LmBwcG KhUJ0f73gMAX8hyolAGC9Wnz9JN2yCBZMOZvGbpqmpN8+RyIuZXuwAvuHS4bEimNazSlj+ MOuPR84ohwtcv80CNWnrZ564U4r2L2MsqhBNp+aMfdVCMA1+l49509JIL+LzM6OsgEpeNj CbgXdpPg/ZE0tie/rRVSFXGX6C0F3OZF+rIglc27fgHSDsbwN7Tfo9sjHLYw052kgE+M+2 F7X68RJUldpGIY849Nllk6wzueSKve6x/09H6bEbZp/mpYFGMV5gW3aommH0SQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=jeoe+eFI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716554842; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eYIyTApNOJ14veeF1MDPI2KBkPxpdzDTIXBT2GICN2k=; b=lpp6SLzgV4spirvUlLhx0J/Yo/vYF/vkQQt8BXa98gbF4r30hfZoBB2whb+7h+8HpXBgJO 51l1aADI+EHOv4FMt1Yn/sDxJZ0bY7XFSl8gj+GltuC05ajzuHlQtNJJyb+QJvD5PnECSd fYwqyW/TWIRu+nVLBb/CbzUyE4TOYQJMlD9+BKmzXQWk+ESi8MgHHPVJFWH17ZIsdHbwbM IJ8snbpJyP3xqRxBXFx0+Glx5yWjztv56SpwmWL3aFNidCZ+tf6J2taMEoplVvEfHkzMq5 SeB0QiRvO3EebHxgD6BKcs4uau/U0t0lE5C9keBUSIpcuAcfVXJxqJOxN8doyw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0B93164E3C for ; Fri, 24 May 2024 14:47:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAUJw-00087f-5O; Fri, 24 May 2024 08:46:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sAUJ2-0007PL-6u for guix-patches@gnu.org; Fri, 24 May 2024 08:46:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sAUJ1-00079t-Q8 for guix-patches@gnu.org; Fri, 24 May 2024 08:45:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAUJ8-0004qF-EQ for guix-patches@gnu.org; Fri, 24 May 2024 08:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71118] [PATCH 2/5] services: tor: Log to stderr rather than syslog. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 May 2024 12:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71118 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 71118@debbugs.gnu.org Received: via spool by 71118-submit@debbugs.gnu.org id=B71118.171655475118599 (code B ref 71118); Fri, 24 May 2024 12:46:02 +0000 Received: (at 71118) by debbugs.gnu.org; 24 May 2024 12:45:51 +0000 Received: from localhost ([127.0.0.1]:36974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAUIw-0004pv-Ne for submit@debbugs.gnu.org; Fri, 24 May 2024 08:45:51 -0400 Received: from mail-qk1-f180.google.com ([209.85.222.180]:57455) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAUIu-0004pp-IT for 71118@debbugs.gnu.org; Fri, 24 May 2024 08:45:49 -0400 Received: by mail-qk1-f180.google.com with SMTP id af79cd13be357-794ad6d2884so35423685a.2 for <71118@debbugs.gnu.org>; Fri, 24 May 2024 05:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716554675; x=1717159475; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eYIyTApNOJ14veeF1MDPI2KBkPxpdzDTIXBT2GICN2k=; b=jeoe+eFI/YsQOPDH8rc/8UTUm75XdfTRUTeewEDd5qJ+ITBJ1uzAAPfomHpxFjyQYp xc3kZOjpOicf6dxdbXcL4jQRNh3yNyozAX9O3yBTwADdaT5yztNP3ngvFp6HnhjJRYE+ 7bPoRldOk537+TjX0wXVTUtPdqjINhitZIcw20TENhoAf1eEuiyCi9a7HOxuwIgayfUy No98oT3/xqF46b5viK+R7GCF6GJkrJX0wto2Jf3G1IBrPy3sIyl9voFUBbeMJBxq7cXr 425w/2RA5P4aCGwNwC31+62Ix7+FYn9NfmoBlpJ8WCmRCZ8Vxq7Qgt/nHamhT+n6Vxt6 UZow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716554675; x=1717159475; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=eYIyTApNOJ14veeF1MDPI2KBkPxpdzDTIXBT2GICN2k=; b=RW+sk8pKRp2t6s2hkA9rjALCEsioOogJveKRwb+x2klNgkEtv894ZfKN15pqUktdqg OC3C1fxvue0M/IP2bpfjjlZc19m3Ye5ktLuTVkx4qyezrRPhF/HYqXhkv0H0iQEKlLI3 2v7PJ4l7acvuv0gSx+trSG6wAlirQbIJoFE5nA6oo8sdS5+uGwGFcX5GtR+/rTG9Jjo6 S019bj5uMbQLCMNX7O11CpbK8I6dPfa2U9Glwoa69DXdIKUE6+iB9LP/3U6mids8cLnH kPq7/gtPllj5+SqyYp2r778vU1MZ/iTK0RXP8ozVUsnkN0WzetiaBiZODXJxpHrYbY1r kkRg== X-Gm-Message-State: AOJu0YxFbj/skomxDIuEJRxYZJ7XKf3jEzZklqTqKL27ErDg2+4uH9b8 u89fOjlOgsGSo13c5gL4r3zNiyY5bo85N1q/y7HzzAorJ1Dnm8hGaelOVA== X-Google-Smtp-Source: AGHT+IFeS2FWgj7lzyk/0TZrnbtecSccocX1kHxNsBSW72OVmLoknTc3+K0W+xe7hH0I6s2O29L2WQ== X-Received: by 2002:ae9:f44b:0:b0:794:8103:4eaa with SMTP id af79cd13be357-794ab052b74mr226074585a.1.1716554675098; Fri, 24 May 2024 05:44:35 -0700 (PDT) Received: from hurd (dsl-10-130-164.b2b2c.ca. [72.10.130.164]) by smtp.gmail.com with ESMTPSA id af79cd13be357-794abca63desm61560785a.5.2024.05.24.05.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 05:44:34 -0700 (PDT) From: Maxim Cournoyer In-Reply-To: <8734q8c23o.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Thu, 23 May 2024 11:24:43 +0200") References: <87sey93get.fsf@gmail.com> <8734q8c23o.fsf@gnu.org> Date: Fri, 24 May 2024 08:44:33 -0400 Message-ID: <87zfsfidla.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 0B93164E3C X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: 2.65 X-Spam-Score: 2.65 X-TUID: pINVVzVx6wry Hi Ludovic, Ludovic Court=C3=A8s writes: > Hi, > > Maxim Cournoyer skribis: > >> Ludovic Court=C3=A8s writes: >> >>> * gnu/services/networking.scm (tor-configuration->torrc): Change =E2=80= =98Log=E2=80=99 >>> directive to =E2=80=98stderr=E2=80=99. >>> (tor-shepherd-service): Remove /dev/log file system mapping. >>> >>> Change-Id: I2e33ad8033f884ce59d929a4181172325331efe0 > > [...] > >> I see no functional change here; do I understand that Shepherd 1.0 will >> now log (by default?) to /dev/error (stderr) instead of /dev/log >> (syslog)? What is the rationale for such change? > > Shepherd by itself doesn=E2=80=99t make any decision; it=E2=80=99s up to = the service to > choose whether to log to stdout/stderr or to syslog. I see. > As I wrote in the cover letter at , > Shepherd 0.10 already does a good job at handling logs, which makes > gives less of an incentive to use syslogd; on top of that, 1.0 (current > =E2=80=98devel=E2=80=99 branch) can display messages logged to stderr/std= out directly at > the command line: > > $ sudo /run/current-system/profile/bin/herd status guix-publish > Status of guix-publish: > It is running since Tue 21 May 2024 08:44:57 AM CEST (2 days ago). > PID 518 running: /gnu/store/12jb83hlngklkymn52yzaw7kldr2qiwp-guix-1.4.0= -20.37719d3/bin/guix publish -u guix-publish -p 8123 -C zstd:3 -C gzip:3 --= nar-path=3Dnar --listen=3D0.0.0.0 --advertise > It is enabled. > Provides (guix-publish). > Requires (user-processes guix-daemon avahi-daemon). > Will be respawned. > Log file: /var/log/guix-publish.log. > > Recent messages: > 2024-05-21 10:56:10 In web/request.scm: > 2024-05-21 10:56:10 205:32 4 (read-request # _) > 2024-05-21 10:56:10 In web/http.scm: > 2024-05-21 10:56:10 1158:12 3 (read-request-line _) > 2024-05-21 10:56:10 1066:2 2 (parse-request-uri _ _ _) > 2024-05-21 10:56:10 In ice-9/boot-9.scm: > 2024-05-21 10:56:10 1685:16 1 (raise-exception _ #:continuable? _) > 2024-05-21 10:56:10 1685:16 0 (raise-exception _ #:continuable? _) > 2024-05-21 10:56:10 .Bad request: Invalid URI: 85.94.204.153:31204 > 2024-05-21 10:56:10=20 > > It=E2=80=99s a slight quality-of-life improvement. I agree that's more convenient than grepping /var/log/messages. Thanks for explaining and for the Shepherd improvements! --=20 Thanks, Maxim