Tomeu Vizoso
87d59ae13b
Avoid crashing in atexit.
2007-05-22 18:24:56 +02:00
Simon McVittie
1f024ff6e4
sugar.logger: Use formatters properly when interfacing with logging.
...
This fixes display of tracebacks in the logs, and adds logger names
2007-05-08 16:24:48 +01:00
Simon McVittie
60d6dcd618
sugar/logger.py: interpolate %x parameters in messages from the logging framework
2007-05-08 11:49:52 +01:00
Mike C. Fletcher
3f10890319
Docstrings for modules all over sugar and shell.
...
These are just the doc strings I created as I was spelunking
through to see how Sugar manages launching applications. The
resulting auto-documentation is neither polished or finished,
but it should help people reading the code somewhat.
There are a few minor code cleanups:
* activityhandle (replacing C idiom for initialisation with
a Python one)
* bundle registry (using a parameterised directory name so
that it shows up in the documentation)
* validate_activity_id function, use isinstance( item, (str,unicode))
for the query, rather than two separate checks with isinstance
2007-04-09 22:47:37 -04:00
Dan Williams
76a0f45aa8
More new PS fixes
2007-04-09 16:05:32 -04:00
Justin Gallardo
b9f9ef0fe9
Changed all tabs to 4 spaces for python style
2006-12-04 11:12:24 -08:00
Marco Pesenti Gritti
96b150d2bb
Add stdout and stderr to the logs
2006-10-25 15:24:40 +02:00
Marco Pesenti Gritti
ffbed76210
We was missing the warning level
2006-10-24 20:15:41 +02:00
Marco Pesenti Gritti
6ab3b3c07e
Cleanup logs dir on shell startup
2006-10-24 20:00:14 +02:00
Marco Pesenti Gritti
f98956acda
Cleanup the messages
2006-10-16 17:04:26 +02:00
Marco Pesenti Gritti
4a65739b71
Flush the stream after writing a log
2006-10-16 16:56:48 +02:00
Marco Pesenti Gritti
4e88e927fb
Remove the old dbus stuff, use one log file per process
2006-10-16 15:56:22 +02:00
Marco Pesenti Gritti
615242f4f8
Add LGPL header
2006-10-15 01:08:44 +02:00
Marco Pesenti Gritti
7801e05293
Put the log in the profile. Release 0.33
2006-10-06 18:53:12 +02:00
John (J5) Palmieri
be29c542bf
Deprecate dbus.dbus_bindings import and use new name_has_owner
...
API when available
2006-10-03 14:27:51 -04:00
Ivan Krstić
8256be0cf2
Log unhandled exceptions in /tmp/sugar.log
2006-09-11 01:29:20 -04:00
Dan Williams
721ef6e29c
Write out log strings as utf8
2006-08-29 11:52:49 -04:00
Dan Williams
8b912fb9fa
Don't use dbus for logging until we get deadlock issues sorted out
2006-08-17 16:27:16 -04:00
Dan Williams
f1d6f96dc4
Reset idle_id so we keep logging even if the console isn't set up yet
2006-08-17 14:46:52 -04:00
Marco Pesenti Gritti
6b181ced13
Some cleanups
2006-08-16 00:41:51 +02:00
Marco Pesenti Gritti
1cfd208f7b
Do not pass the timeout argument if we are using the in-process console
2006-08-16 00:30:50 +02:00
Marco Pesenti Gritti
b1c7385204
Print traces also on stderr
2006-08-15 13:15:46 +02:00
Marco Pesenti Gritti
3d4330580c
Factor out a queue from the handler and use it for exceptions too.
...
Send all messages in the same dbus call.
2006-08-14 12:18:58 +02:00
Marco Pesenti Gritti
6eb7117c25
Getting presence service logging to work.
...
Don't lose debug state when switching tab.
2006-08-13 02:57:12 +02:00
Marco Pesenti Gritti
dd7fff79f8
Fix add_python_path, ensure service exist before trying to log
2006-08-13 01:31:24 +02:00
Marco Pesenti Gritti
2636bc63d0
Split the console service out of the shell, to remove dep
2006-08-12 16:19:47 +02:00
Marco Pesenti Gritti
72bf637091
Actually enable exception logging
2006-08-11 23:30:03 +02:00
Marco Pesenti Gritti
9585330e43
Add a way to enable/disable displaying debug messages
2006-08-11 17:05:06 +02:00
Marco Pesenti Gritti
884eef4bd5
Show all activities output in the console, just
...
activate the tab for the current activity.
2006-08-11 15:21:11 +02:00
Marco Pesenti Gritti
628271959c
Refactor the console stuff
2006-08-11 13:05:33 +02:00