Turning off logging for arbitrary contacts

Marcin Ziemiński brentprey at gmail.com
Sun Jun 29 11:12:22 UTC 2014


> 2014-06-27 23:35 GMT+02:00 Sandro Knauß <bugs at sandroknauss.de>:
>  Hey,have you cleaned the build dir/ delete it? Sometimes this helps :)
CMake
>  creates a Cache of what and where somthing was found. And if you rerun
cmake,
>  than not everthing is checked again. That's why sometimes deleting the
build
>  dir helps :)

Yes, I tried a lot of things.

2014-06-28 10:42 GMT+02:00 Daniel Vrátil <dvratil at redhat.com>:

> On Friday 27 of June 2014 00:21:07 David Edmundson wrote:
> > Filters won't help, the logging is done by an observer in a separate
> > process.
> >
> > See c0a2104a590e9e68226f836d22ff6e645f3e33d3 in telepathy-logger, it
> > might do what we want.
> >
> > Dan, can you comment here?
>
> Unfortunately this has been committed after 0.8.0 and there was no new
> release
> since then, so distros don't have it.
>
> Maybe you could try asking on telepathy ml what are their release plans for
> telepathy-logger.
>
> I think I had a patch for telepathy-logger-qt somewhere to add support for
> the
> API, but I can't find it. Should be easy to write again though, since it
> just
> needs updating spec/Logger.xml.
>
> Dan
>

telepathy-logger stores ignorelist using gsettings and doesn't seem to give
access to it through dbus interfaces.
I added simple patches to enable it in both telepathy-logger-qt and in
KTp::Logger.
I can't get it working. Every call to disableForEntity ends with crash:

GLib-CRITICAL **: g_variant_new_string: assertion 'g_utf8_validate (string,
-1, NULL)' failed
GLib-CRITICAL **: g_variant_ref_sink: assertion 'value != NULL' failed

enableForEntity and isDisabledForEntity do not cause any errors.
Maybe I do not understand properly glib, hence my problems.

Still this is not entirely the feature we need. If I understand it
correctly, when I intend do disable logging for a conversation  I have to
disable it for both sides of it. As a consequence I would turn off logging
of every message I create,  even during unencrypted conversation with
different contacts.
I would like to know if it is what we would like to see in KTp and if it
works properly before I ask on telepathy ml.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20140629/a950955e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ktp-common-internals.patch
Type: text/x-patch
Size: 6069 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20140629/a950955e/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: telepathy-logger-qt.patch
Type: text/x-patch
Size: 2595 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20140629/a950955e/attachment-0001.patch>


More information about the KDE-Telepathy mailing list