<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ubox/log, branch master</title>
<subtitle>OpenWrt core utilities</subtitle>
<id>https://git-03.infra.openwrt.org/project/ubox/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/ubox/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/ubox/'/>
<updated>2023-11-30T12:42:09Z</updated>
<entry>
<title>logd: add udebug support</title>
<updated>2023-11-30T12:42:09Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2023-11-30T12:42:09Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/ubox/commit/?id=c08709cceb554cba02c935d1442f6a042fe6b2a8'/>
<id>urn:sha1:c08709cceb554cba02c935d1442f6a042fe6b2a8</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>logd: add support for subscribing to the log object</title>
<updated>2023-01-19T12:06:21Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2023-01-19T12:06:19Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/ubox/commit/?id=cc34fb7b922f183e6ece5fa0fec31d4eb95c5823'/>
<id>urn:sha1:cc34fb7b922f183e6ece5fa0fec31d4eb95c5823</id>
<content type='text'>
Provides easier access to log messages

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>logread: fix erroneous message "Logread connected to" with udp</title>
<updated>2021-08-03T21:02:36Z</updated>
<author>
<name>Giovanni Giacobbi</name>
</author>
<published>2021-07-27T13:15:26Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/ubox/commit/?id=205defb597295a4a8966db3e618cfe41a29bed99'/>
<id>urn:sha1:205defb597295a4a8966db3e618cfe41a29bed99</id>
<content type='text'>
When streaming the syslog messages via udp, the socket connection
always succeeds by definition, but it can still fail to send. In such
case, the syslog keep repeating the following two messages:

    failed to send log data to ip:port via udp
    Logread connected to ip:port

With this change, only one initial message "Logread connected to..." is
logged.

Also fixed capital letter for "failed to send" message.

Signed-off-by: Giovanni Giacobbi &lt;giovanni@giacobbi.net&gt;
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt; (string de-duplication)
</content>
</entry>
<entry>
<title>logd: fix privilege dropping order</title>
<updated>2021-08-03T20:45:30Z</updated>
<author>
<name>Giovanni Giacobbi</name>
</author>
<published>2021-07-27T12:39:28Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/ubox/commit/?id=1f4f72bde55e8c5810db4ead4170352febd2dbfb'/>
<id>urn:sha1:1f4f72bde55e8c5810db4ead4170352febd2dbfb</id>
<content type='text'>
Fixes: 41664054b8b1 ("logd: fix ignored return values in set{gid,uid}")
Signed-off-by: Giovanni Giacobbi &lt;giovanni@giacobbi.net&gt;
</content>
</entry>
<entry>
<title>logd: fix ignored return values in set{gid,uid}</title>
<updated>2021-03-22T17:22:14Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2021-03-22T17:22:14Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/ubox/commit/?id=41664054b8b1bc19d842421c49d1b4d612ff8297'/>
<id>urn:sha1:41664054b8b1bc19d842421c49d1b4d612ff8297</id>
<content type='text'>
Ubuntu 18.05 with gcc-7.5 yields following error:

 ubox/log/logd.c:263:3: error: ignoring return value of ‘setuid’, declared with attribute warn_unused_result [-Werror=unused-result]
   setuid(p-&gt;pw_uid);
   ^~~~~~~~~~~~~~~~~
 ubox/log/logd.c:264:3: error: ignoring return value of ‘setgid’, declared with attribute warn_unused_result [-Werror=unused-result]
   setgid(p-&gt;pw_gid);
   ^~~~~~~~~~~~~~~~~

Fixes: 9ef886819dd4 ("logd: self-degrade to 'logd' user after opening pipes")
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>logd: self-degrade to 'logd' user after opening pipes</title>
<updated>2020-10-19T15:45:48Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2020-10-19T15:18:22Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/ubox/commit/?id=9ef886819dd48303d8ced4cdbc9afbf32682535c'/>
<id>urn:sha1:9ef886819dd48303d8ced4cdbc9afbf32682535c</id>
<content type='text'>
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>logread: add option to filter for facilities</title>
<updated>2019-10-22T11:01:02Z</updated>
<author>
<name>Zefir Kurtisi</name>
</author>
<published>2019-07-25T15:43:15Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/ubox/commit/?id=17689b61a1cdc05b2c27fc5a33407e1a3c384137'/>
<id>urn:sha1:17689b61a1cdc05b2c27fc5a33407e1a3c384137</id>
<content type='text'>
This adds filtering options for facilities as follows:
    -z	&lt;facility&gt;	handle only messages with given facility (0-23), repeatable
    -Z	&lt;facility&gt;	ignore messages with given facility (0-23), repeatable

With that
* 'logread -z 2 -z 16' will display all MAIL and LOCAL0 messages, while
* 'logread -Z 2 -Z 16' will display all but MAIL and LOCAL0 messages

Signed-off-by: Zefir Kurtisi &lt;zefir.kurtisi@neratec.com&gt;
</content>
</entry>
<entry>
<title>logread: fix reconnect logd logic</title>
<updated>2018-02-14T08:17:06Z</updated>
<author>
<name>John Crispin</name>
</author>
<published>2018-02-14T08:08:54Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/ubox/commit/?id=128bc35fa951ac3beff6e977bc3cced87c2e2600'/>
<id>urn:sha1:128bc35fa951ac3beff6e977bc3cced87c2e2600</id>
<content type='text'>
Signed-off-by: John Crispin &lt;john@phrozen.org&gt;
</content>
</entry>
<entry>
<title>logrea: move the code setting up the request blob out of the main loop</title>
<updated>2018-02-14T08:00:51Z</updated>
<author>
<name>John Crispin</name>
</author>
<published>2018-02-14T07:47:03Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/ubox/commit/?id=66347ec742eddf2bdffa21549f49d00b7be8cb9a'/>
<id>urn:sha1:66347ec742eddf2bdffa21549f49d00b7be8cb9a</id>
<content type='text'>
Signed-off-by: John Crispin &lt;john@phrozen.org&gt;
</content>
</entry>
<entry>
<title>logread: move output connection setup code out of main loop</title>
<updated>2018-02-14T08:00:08Z</updated>
<author>
<name>John Crispin</name>
</author>
<published>2018-02-14T07:44:27Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/ubox/commit/?id=975a258cde472dd3fd863e37bf57a268c92c6366'/>
<id>urn:sha1:975a258cde472dd3fd863e37bf57a268c92c6366</id>
<content type='text'>
Signed-off-by: John Crispin &lt;john@phrozen.org&gt;
</content>
</entry>
</feed>
