Bug 27463

Summary: improvements and clean ups
Product: Telepathy Reporter: Cosimo Alfarano <cosimo.alfarano>
Component: loggerAssignee: Cosimo Alfarano <cosimo.alfarano>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium Keywords: patch
Version: git master   
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/kalfa/telepathy-logger.git;a=shortlog;h=refs/heads/misc-clean-up
Whiteboard: review+
i915 platform: i915 features:

Description Cosimo Alfarano 2010-04-05 05:35:22 UTC
This branch fixes a couple of bugs and mostly clean ups debug messages and reduces debug noise
Comment 1 Simon McVittie 2010-04-05 08:19:37 UTC
> TplChannelText: show debug message only on non-empthy lists

Every Empathy developer's favourite typo. You mean empty :-)

> +  g_return_val_if_fail (!TPL_STR_EMPTY (chat_id), FALSE);

Not an objection, but if you depend on telepathy-glib (>= 0.11.0) you can use the macro tp_str_empty() :-)

> +        "Unable to acknowledge pending message %d for chanenl %s: not found",

That's not how you spell channel.


>          }
> +      else
> +        PATH_DEBUG (proxy, "msg_id %d acknowledged", msg_id);

Consistent brace usage, please (the "if" clause has {}, so the "else" needs them too)

Otherwise looks good.
Comment 2 Cosimo Alfarano 2010-04-05 08:38:52 UTC
>> TplChannelText: show debug message only on non-empthy lists
>Every Empathy developer's favourite typo. You mean empty :-)

fixed :)

>> +        "Unable to acknowledge pending message %d for chanenl %s: not found",
>That's not how you spell channel.

fixed.


> Consistent brace usage, please (the "if" clause has {}, so the "else" needs
them too)

fixed.


> Not an objection, but if you depend on telepathy-glib (>= 0.11.0) you can use
the macro tp_str_empty() :-)

Yep, I saw the change, I'll update it using tp_str_empty in another path.

There are lots of pending branches around which need to be merged, after it I'll start a cycle of general clean up of such things, before we'll declare the stable API.
Comment 3 Simon McVittie 2010-04-05 09:17:51 UTC
Ship it

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.