You already have the line <div>export SUGAR_LOGGER_LEVEL=debug<br>uncommented in .sugar/debug, right?</div><div><br></div><div>Gonzalo</div><div><br><div class="gmail_quote">On Wed, Sep 19, 2012 at 5:41 PM, Martin Langhoff <span dir="ltr"><<a href="mailto:martin.langhoff@gmail.com" target="_blank">martin.langhoff@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Sep 19, 2012 at 4:15 PM, Martin Langhoff<br>
<<a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a>> wrote:<br>
> I'm debugging odd situations w Sugar datastore, and I wonder whether<br>
> there is any tricks to debugging python programs that are run under<br>
> dbus.<br>
><br>
> I can see the sugar-datastore PID growing steadily while I test, which<br>
> means that it's dying and respawning plenty, likely from unhandled<br>
> exceptions...<br>
<br>
</div>Adding to /usr/bin/datastore-service<br>
<br>
# debugging<br>
logerr=open(os.path.join(log_dir, 'datastore.err'), 'w')<br>
sys.stderr=logerr<br>
<br>
does not help in the least. The file is created, but nothing is ever<br>
written there.<br>
<br>
Any hints?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
m<br>
--<br>
 <a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a><br>
 <a href="mailto:martin@laptop.org">martin@laptop.org</a> -- Software Architect - OLPC<br>
 - ask interesting questions<br>
 - don't get distracted with shiny stuff  - working code first<br>
 - <a href="http://wiki.laptop.org/go/User:Martinlanghoff" target="_blank">http://wiki.laptop.org/go/User:Martinlanghoff</a><br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</div></div></blockquote></div><br></div>