Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

linux: the choice of a GNU generation (ksh@cis.ufl.edu put this on Tshirts in '93)


devel / comp.lang.python / Re: Getting Syslog working on OSX Monterey

SubjectAuthor
o Re: Getting Syslog working on OSX MontereyBarry

1
Re: Getting Syslog working on OSX Monterey

<mailman.220.1646604696.2329.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17409&group=comp.lang.python#17409

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: bar...@barrys-emacs.org (Barry)
Newsgroups: comp.lang.python
Subject: Re: Getting Syslog working on OSX Monterey
Date: Sun, 6 Mar 2022 22:11:30 +0000
Lines: 54
Message-ID: <mailman.220.1646604696.2329.python-list@python.org>
References: <20220306193544.6m5s3srx5norodlt@hjp.at>
<7D7A977C-9D9B-475B-8DB2-004548C2FECA@barrys-emacs.org>
Mime-Version: 1.0 (1.0)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de 49DfJ5uECuwHOljRh96MPAfIvzJ2G7thG76BEDqijXQw==
Return-Path: <barry@barrys-emacs.org>
X-Original-To: Python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '3.6': 0.05; 'mar': 0.07;
'"just': 0.09; 'cc:addr:python-list': 0.09; 'from:addr:barry':
0.09; 'linux': 0.09; 'macos': 0.09; 'messages.': 0.09;
'obviously': 0.09; 'received:217.70': 0.09; 'received:217.70.178':
0.09; 'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09;
'rfc': 0.09; 'cc:no real name:2**0': 0.14; 'url:mailman': 0.15;
'"creative': 0.16; '2022,': 0.16; '__/': 0.16; 'barry': 0.16;
'challenge!"': 0.16; 'from:addr:barrys-emacs.org': 0.16;
'hjp@hjp.at': 0.16; 'holzer': 0.16; 'incompatible': 0.16;
'interesting.': 0.16; 'message-id:@barrys-emacs.org': 0.16;
'part.': 0.16; 'reality.': 0.16; 'redundant': 0.16; 'stross,':
0.16; 'subject:OSX': 0.16; 'subject:working': 0.16; 'url-
ip:212.17.106.137/32': 0.16; 'url-ip:212.17.106/24': 0.16; 'url-
ip:212.17/16': 0.16; 'url:hjp': 0.16; '|_|_)': 0.16; 'wrote:':
0.16; 'python': 0.16; 'cc:addr:python.org': 0.20; 'code': 0.23;
'header': 0.23; 'url-ip:188.166.95.178/32': 0.25; 'url-
ip:188.166.95/24': 0.25; 'url:listinfo': 0.25; 'cc:2**0': 0.25;
'url-ip:188.166/16': 0.25; 'suspect': 0.26; 'function': 0.27;
'>>>': 0.28; 'sense': 0.28; 'seem': 0.31; 'url-ip:188/8': 0.31;
"doesn't": 0.32; 'question': 0.32; 'formats': 0.32; 'use,': 0.33;
'header:In-Reply-To:1': 0.34; 'using': 0.37; "it's": 0.37;
'this.': 0.37; 'means': 0.38; 'two': 0.39; 'safe': 0.39; 'valid':
0.39; 'use': 0.39; 'break': 0.39; 'case.': 0.40; 'format': 0.62;
'apple': 0.64; 'received:217': 0.67; 'url-ip:212/8': 0.69;
'scott': 0.84; 'spare': 0.84; 'upgrades': 0.84; 'broke': 0.91;
'hidden': 0.95
In-Reply-To: <20220306193544.6m5s3srx5norodlt@hjp.at>
X-Mailer: iPad Mail (19D52)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <7D7A977C-9D9B-475B-8DB2-004548C2FECA@barrys-emacs.org>
X-Mailman-Original-References: <20220306193544.6m5s3srx5norodlt@hjp.at>
 by: Barry - Sun, 6 Mar 2022 22:11 UTC

> On 6 Mar 2022, at 19:38, Peter J. Holzer <hjp-python@hjp.at> wrote:
>
> On 2022-03-06 18:28:59 +0100, Peter J. Holzer wrote:
>>> On 2022-03-05 16:25:38 +0000, Barry Scott wrote:
>>> Using the syslog() function means that any platform/distro details are
>>> hidden from the user of syslog() and as is the case of macOS it
>>> "just works".
>>
>> That doesn't seem to be case. Philip Bloom reported in
>> <CADoNktVgU9DBdBfc5wJe4vhJcTKrdVQjdeUO8eN=BvTw9g48fw@mail.gmail.com>,
>> that syslog in Python 3.6 broke in OS X Monterey. So even using
>> syslog(3) doesn't seem to be safe across upgrades (no, I don't know
>> how Apple managed to break this - as I wrote, I don't use OS X).
>>
>>
>>> (I assume, not checked, that the write to the socket does not work
>>> because Apple is not implementing the syslog protocol from the RFC).
>
> I noticed that RFC 5424 describes a very different protocol from RFC
> 3164 and was curious which one SysLogHandler implements.
>
> Surprise: Neither.

So the logging code works by accident…

>
> It just sends the PRI part and the MSG part. While that neatly sidesteps
> the question of which of the two incompatible header formats to use,
> it's not a a valid syslog message in either format.
>
> Obviously Linux accepts this format (the timestamp and the hostname are
> kind of redundant anyway when you're using a unix socket).
>
> I strongly suspect that the OS X syslog daemon got stricter and now
> insists on properly formatted messages.

Interesting. If I can find a spare hour I can play with this.

Barry

>
> hp
>
>
> --
> _ | Peter J. Holzer | Story must make more sense than reality.
> |_|_) | |
> | | | hjp@hjp.at | -- Charles Stross, "Creative writing
> __/ | http://www.hjp.at/ | challenge!"
> --
> https://mail.python.org/mailman/listinfo/python-list

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor