Bug 26393 - A quick call to check if the TpDebugSender is enabled
Summary: A quick call to check if the TpDebugSender is enabled
Status: RESOLVED INVALID
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 26388
  Show dependency treegraph
 
Reported: 2010-02-02 09:11 UTC by Mikhail Zabaluev
Modified: 2010-02-03 04:51 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Mikhail Zabaluev 2010-02-02 09:11:28 UTC
Add a function:
gboolean tp_debug_sender_is_enabled(TpDebugSender *);

, so a logger function doesn't have to run a GObject property get every time it wants to check whether to bypass formatting of the log message.
Comment 1 Simon McVittie 2010-02-02 10:49:52 UTC
I'm not sure whether this is useful? Part of the idea of the Debug interface is that messages go onto a ring-buffer even if broadcasting them over D-Bus is currently disabled, so that after something breaks (other than a CM crash), you can go Help->Debug in Empathy. Empathy will start listening for messages, but also fetch the current contents of the ring-buffer, and hopefully the messages related to the failure won't have scrolled off the top yet. Conditionalizing on whether the debug-sender is enabled would break that.
Comment 2 Mikhail Zabaluev 2010-02-03 04:51:51 UTC
I agree with comment #1. This is not the change I'm looking for.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.