Ticket #927 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

debug logs for the presence service and connection managers not working

Reported by: tomeu Owned by: erikos
Priority: Unspecified by Maintainer Milestone: Unspecified by Release Team
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

sugar-927.patch Download (13.0 KB) - added by alsroot 4 years ago.

Change History

Changed 4 years ago by erikos

Thanks for the update on this. I had no luck so far with it on soas - doing it in .Xclients

Changed 4 years ago by sascha_silbe

  • cc sascha_silbe added

Changed 4 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.

Changed 4 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.

Changed 4 years ago by erikos

  • owner changed from sdz to erikos
  • status changed from new to assigned
  • status_field changed from Unconfirmed 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)

Changed 4 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...)

Changed 4 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 4 years ago by alsroot

Changed 4 years ago by alsroot

  • keywords r? added

Changed 4 years ago by alsroot

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.