[Sugar-devel] Debugging sugar-datastore (and similar dbus-connected services)

Gonzalo Odiard gonzalo at laptop.org
Wed Sep 19 16:54:54 EDT 2012


You already have the line
export SUGAR_LOGGER_LEVEL=debug
uncommented in .sugar/debug, right?

Gonzalo

On Wed, Sep 19, 2012 at 5:41 PM, Martin Langhoff
<martin.langhoff at gmail.com>wrote:

> On Wed, Sep 19, 2012 at 4:15 PM, Martin Langhoff
> <martin.langhoff at gmail.com> wrote:
> > I'm debugging odd situations w Sugar datastore, and I wonder whether
> > there is any tricks to debugging python programs that are run under
> > dbus.
> >
> > I can see the sugar-datastore PID growing steadily while I test, which
> > means that it's dying and respawning plenty, likely from unhandled
> > exceptions...
>
> Adding to /usr/bin/datastore-service
>
> # debugging
> logerr=open(os.path.join(log_dir, 'datastore.err'), 'w')
> sys.stderr=logerr
>
> does not help in the least. The file is created, but nothing is ever
> written there.
>
> Any hints?
>
>
>
> m
> --
>  martin.langhoff at gmail.com
>  martin at laptop.org -- Software Architect - OLPC
>  - ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  - http://wiki.laptop.org/go/User:Martinlanghoff
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120919/c903018a/attachment.html>


More information about the Sugar-devel mailing list