Opened 14 years ago
Closed 14 years ago
#927 closed defect (fixed)
debug logs for the presence service and connection managers not working
Reported by: | tomeu | Owned by: | erikos |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | Unspecified |
Component: | Sugar on a Stick (SoaS) | Version: | Unspecified |
Severity: | Unspecified | Keywords: | r? |
Cc: | erikos, sascha_silbe, mtd | Distribution/OS: | Unspecified |
Bug Status: | Assigned |
Description
because these services are auto-activated by the dbus daemon and we set the env vars too late during startup.
Instead of sourcing ~/.sugar/debug in bin/sugar, we should do it in whatever script launches dbus-session, before it does so.
In SoaS this is in .Xclients.
Attachments (1)
Change History (10)
comment:1 Changed 14 years ago by erikos
comment:2 Changed 14 years ago by sascha_silbe
- Cc sascha_silbe added
comment:3 Changed 14 years ago by erikos
in .Xclients I do:
xsetroot -def export SALUT_DEBUG=all eval $(dbus-launch --sh-syntax --exit-with-session)
The variable is exported fine when I check in the terminal session. But there are no salut logs been written.
comment:4 Changed 14 years ago by erikos
Ok, cool - I had to define the logfile as well.
export SALUT_LOGFILE=~/.sugar/default/logs/telepathy-salut.log
Works now. Let's see how we do that best on soas.
comment:5 Changed 14 years ago by erikos
- Bug Status changed from Unconfirmed to Assigned
- Owner changed from sdz to erikos
- Status changed from new to assigned
Let's just source the debug options file in the .Xclients - just needs to be before "eval
\$(dbus-launch --sh-syntax --exit-with-session)"
if [ -f ~/.sugar/debug ]; then . ~/.sugar/debug fi eval \\\$(dbus-launch --sh-syntax --exit-with-session)
comment:6 Changed 14 years ago by mtd
- Cc mtd added
Might be good to add to an xinitrc.d file...I'm trying this out in my soas-devxo branch:
cat > /etc/X11/xinit/xinitrc.d/000-source-sugar-debug-settings.sh <<EOF
if [ -f ~/.sugar/debug ]; then
. ~/.sugar/debug
fi
EOF
(not sure about the tilde-expansion but we'll see...)
comment:7 Changed 14 years ago by daveb
NOTE:
soas-strawberry still has typos in the ~/.sugar/debug file. Missing spaces:
see http://dev.sugarlabs.org/ticket/718 it says it was fixed but soas-strawbeery still contains this.
Changed 14 years ago by alsroot
comment:8 Changed 14 years ago by alsroot
- Keywords r? added
comment:9 Changed 14 years ago by alsroot
- Resolution set to fixed
- Status changed from assigned to closed
Commited patch just source debug files before starting python code
http://git.sugarlabs.org/projects/sugar/repos/mainline/commits/d4a15733f438e204a092fc2338b85ef3e5244cc0
Thanks for the update on this. I had no luck so far with it on soas - doing it in .Xclients