<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/python-systemd.git, branch v234</title>
<subtitle>github.com: systemd/python-systemd.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/python-systemd.git/'/>
<entry>
<title>Prepare v234</title>
<updated>2017-03-26T01:33:59+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-25T15:30:27+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/python-systemd.git/commit/?id=308ae4440c1f6ea1aff9be4cb683c52bd3a1c13a'/>
<id>308ae4440c1f6ea1aff9be4cb683c52bd3a1c13a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update to constants from systemd-233</title>
<updated>2017-03-26T01:33:05+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-26T01:31:16+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/python-systemd.git/commit/?id=a54a7a2f512da45f6f4f2abae964e9f37ff64a8d'/>
<id>a54a7a2f512da45f6f4f2abae964e9f37ff64a8d</id>
<content type='text'>
In systemd-233 the format of the constants file changed to use
SD_ID128_MAKE_STR macro and long lines are broken with '\'.
Doing this in sed is too anyoing — add a simple python script to
do the processing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In systemd-233 the format of the constants file changed to use
SD_ID128_MAKE_STR macro and long lines are broken with '\'.
Doing this in sed is too anyoing — add a simple python script to
do the processing.
</pre>
</div>
</content>
</entry>
<entry>
<title>journal: fix repr of JournalHandler to match python3.6</title>
<updated>2017-03-25T16:31:45+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-25T16:30:18+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/python-systemd.git/commit/?id=a5dc4ab856255416e8881ab7d178d46b47285163'/>
<id>a5dc4ab856255416e8881ab7d178d46b47285163</id>
<content type='text'>
We get &lt;systemd.journal.JournalHandler object at ...&gt; in older versions,
and &lt;JournalHandler (NOTSET)&gt; in since Python 3.6.
https://github.com/python/cpython/commit/c0752011472790e34d171b89f4b862cc3fd8ad08
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We get &lt;systemd.journal.JournalHandler object at ...&gt; in older versions,
and &lt;JournalHandler (NOTSET)&gt; in since Python 3.6.
https://github.com/python/cpython/commit/c0752011472790e34d171b89f4b862cc3fd8ad08
</pre>
</div>
</content>
</entry>
<entry>
<title>journal: do not convert extra args to string in JournalHandler</title>
<updated>2017-03-19T19:07:59+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-19T19:03:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/python-systemd.git/commit/?id=2169cdea8d2850a8e4109b2d1f3980d44a361818'/>
<id>2169cdea8d2850a8e4109b2d1f3980d44a361818</id>
<content type='text'>
send() already does conversions in a type-specific way, and doing it
in journal handler would defeat those conversions. In particular, UUIDs
would be converted to early and have dashes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
send() already does conversions in a type-specific way, and doing it
in journal handler would defeat those conversions. In particular, UUIDs
would be converted to early and have dashes.
</pre>
</div>
</content>
</entry>
<entry>
<title>test_journal: add tests for MESSAGE_ID passing</title>
<updated>2017-03-19T19:06:19+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-19T17:12:20+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/python-systemd.git/commit/?id=aa5550a9b7bb6fc0297c2f1bcb404daed1496251'/>
<id>aa5550a9b7bb6fc0297c2f1bcb404daed1496251</id>
<content type='text'>
MESSAGE_ID passing was broken before previous commit:
TypeError: send() got multiple values for keyword argument 'MESSAGE_ID'

With the previous commit it's broken differently:

______________________________ test_journalhandler_message_id_on_handler _______________________________

    def test_journalhandler_message_id_on_handler():
        record = logging.LogRecord('test-logger', logging.INFO, 'testpath', 1, 'test', None, None)
        sender = MockSender()
        handler = journal.JournalHandler(logging.INFO, sender_function=sender.send,
                                         MESSAGE_ID=TEST_MID)
        handler.emit(record)
        assert len(sender.buf) == 1
&gt;       assert 'MESSAGE_ID=' + TEST_MID.hex in sender.buf[0]
E       assert ('MESSAGE_ID=' + '8441372f8dca4ca98694a6091fd8519f') in ['MESSAGE=test', 'MESSAGE_ID=8441372f-8dca-4ca9-8694-a6091fd8519f', 'CODE_FILE=testpath', 'CODE_LINE=1', 'name=test-logger', 'exc_info=None', ...]
E        +  where '8441372f8dca4ca98694a6091fd8519f' = UUID('8441372f-8dca-4ca9-8694-a6091fd8519f').hex

systemd/test/test_journal.py:116: AssertionError
______________________________ test_journalhandler_message_id_on_message _______________________________

    def test_journalhandler_message_id_on_message():
        record = logging.LogRecord('test-logger', logging.INFO, 'testpath', 1, 'test', None, None)
        record.__dict__['MESSAGE_ID'] = TEST_MID2
        sender = MockSender()
        handler = journal.JournalHandler(logging.INFO, sender_function=sender.send,
                                         MESSAGE_ID=TEST_MID)
        handler.emit(record)
        assert len(sender.buf) == 1
&gt;       assert 'MESSAGE_ID=' + TEST_MID2.hex in sender.buf[0]
E       assert ('MESSAGE_ID=' + '8441370000000000000000001fd85000') in ['MESSAGE=test', 'MESSAGE_ID=84413700-0000-0000-0000-00001fd85000', 'CODE_FILE=testpath', 'CODE_LINE=1', 'name=test-logger', 'exc_info=None', ...]
E        +  where '8441370000000000000000001fd85000' = UUID('84413700-0000-0000-0000-00001fd85000').hex

systemd/test/test_journal.py:135: AssertionError
============================ 2 failed, 53 passed, 6 skipped in 0.16 seconds ============================
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MESSAGE_ID passing was broken before previous commit:
TypeError: send() got multiple values for keyword argument 'MESSAGE_ID'

With the previous commit it's broken differently:

______________________________ test_journalhandler_message_id_on_handler _______________________________

    def test_journalhandler_message_id_on_handler():
        record = logging.LogRecord('test-logger', logging.INFO, 'testpath', 1, 'test', None, None)
        sender = MockSender()
        handler = journal.JournalHandler(logging.INFO, sender_function=sender.send,
                                         MESSAGE_ID=TEST_MID)
        handler.emit(record)
        assert len(sender.buf) == 1
&gt;       assert 'MESSAGE_ID=' + TEST_MID.hex in sender.buf[0]
E       assert ('MESSAGE_ID=' + '8441372f8dca4ca98694a6091fd8519f') in ['MESSAGE=test', 'MESSAGE_ID=8441372f-8dca-4ca9-8694-a6091fd8519f', 'CODE_FILE=testpath', 'CODE_LINE=1', 'name=test-logger', 'exc_info=None', ...]
E        +  where '8441372f8dca4ca98694a6091fd8519f' = UUID('8441372f-8dca-4ca9-8694-a6091fd8519f').hex

systemd/test/test_journal.py:116: AssertionError
______________________________ test_journalhandler_message_id_on_message _______________________________

    def test_journalhandler_message_id_on_message():
        record = logging.LogRecord('test-logger', logging.INFO, 'testpath', 1, 'test', None, None)
        record.__dict__['MESSAGE_ID'] = TEST_MID2
        sender = MockSender()
        handler = journal.JournalHandler(logging.INFO, sender_function=sender.send,
                                         MESSAGE_ID=TEST_MID)
        handler.emit(record)
        assert len(sender.buf) == 1
&gt;       assert 'MESSAGE_ID=' + TEST_MID2.hex in sender.buf[0]
E       assert ('MESSAGE_ID=' + '8441370000000000000000001fd85000') in ['MESSAGE=test', 'MESSAGE_ID=84413700-0000-0000-0000-00001fd85000', 'CODE_FILE=testpath', 'CODE_LINE=1', 'name=test-logger', 'exc_info=None', ...]
E        +  where '8441370000000000000000001fd85000' = UUID('84413700-0000-0000-0000-00001fd85000').hex

systemd/test/test_journal.py:135: AssertionError
============================ 2 failed, 53 passed, 6 skipped in 0.16 seconds ============================
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove mid from JournalHandler</title>
<updated>2017-03-19T17:33:32+00:00</updated>
<author>
<name>Wesley Bowman</name>
<email>wesley@channable.com</email>
</author>
<published>2017-03-13T07:51:38+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/python-systemd.git/commit/?id=08857486e6f6b2caa5556ac20c9e1c8bd870f292'/>
<id>08857486e6f6b2caa5556ac20c9e1c8bd870f292</id>
<content type='text'>
Removed mid variable from JournalHandler since the MESSAGE_ID is already
in the extras variable. MESSAGE_ID was being set to None, but this won't
appear in the logs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removed mid variable from JournalHandler since the MESSAGE_ID is already
in the extras variable. MESSAGE_ID was being set to None, but this won't
appear in the logs.
</pre>
</div>
</content>
</entry>
<entry>
<title>journal: rename SENDER_FUNCTION to sender_function</title>
<updated>2017-03-19T17:28:15+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-19T16:59:51+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/python-systemd.git/commit/?id=84371c2cfda49483f6dabc6bb85cb0131df1053e'/>
<id>84371c2cfda49483f6dabc6bb85cb0131df1053e</id>
<content type='text'>
Let's not try to make it look like a journal field. It should
be a normal parameter.

Followup for dce0a855c3281e7051b1cbe0f73386d1c90ef320.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Let's not try to make it look like a journal field. It should
be a normal parameter.

Followup for dce0a855c3281e7051b1cbe0f73386d1c90ef320.
</pre>
</div>
</content>
</entry>
<entry>
<title>daemon: properly skip sd_is_socket_sockaddr calls if not available</title>
<updated>2017-03-19T17:17:13+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-19T16:38:27+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/python-systemd.git/commit/?id=5498ad7513e1a703e7881b28c78a47ffd8810838'/>
<id>5498ad7513e1a703e7881b28c78a47ffd8810838</id>
<content type='text'>
As with other functions, the wrapper is always present, but returns
OSError: [Errno 38] Function not implemented.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As with other functions, the wrapper is always present, but returns
OSError: [Errno 38] Function not implemented.
</pre>
</div>
</content>
</entry>
<entry>
<title>Makefile: add convenience "shell" target to start python shell</title>
<updated>2017-03-19T17:17:13+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-19T16:58:41+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/python-systemd.git/commit/?id=fe9756d3ab2e4a1efb98418e2a90e7ec7763eab1'/>
<id>fe9756d3ab2e4a1efb98418e2a90e7ec7763eab1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Makefile: add "doc" target for convenience</title>
<updated>2017-03-19T17:17:13+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-19T15:22:10+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/python-systemd.git/commit/?id=3f9386a4359219991dba3fd5f770f348270e178b'/>
<id>3f9386a4359219991dba3fd5f770f348270e178b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
