sabayon r698 - in branches/debug-log: . admin-tool lib



Author: federico
Date: 2007-03-29 02:55:29 +0100 (Thu, 29 Mar 2007)
New Revision: 698
ViewCVS link: http://svn.gnome.org/viewcvs/sabayon?rev=698&view=rev

Modified:
   branches/debug-log/ChangeLog
   branches/debug-log/admin-tool/profilesdialog.py
   branches/debug-log/admin-tool/sabayon
   branches/debug-log/admin-tool/sabayon-apply
   branches/debug-log/admin-tool/sabayon-session
   branches/debug-log/admin-tool/sessionwindow.py
   branches/debug-log/lib/config.py.in
   branches/debug-log/lib/debuglog.py
   branches/debug-log/lib/errors.py
   branches/debug-log/lib/protosession.py
   branches/debug-log/lib/util.py
Log:
2007-03-28  Federico Mena Quintero  <federico novell com>

	* admin-tool/sabayon (readable_log_config_setup): New function.
	Copies the log configuration to a world-readable file, as in
	normal circumstances the "sabayon" user will not be able to read
	root's own ~/sabayon-debug-log.conf.
	(main): Capture fatal exceptions, log them, and terminate.
	Capture recoverable errors, log them, and terminate gracefully.

	* lib/errors.py (errors_exit_helper_normally): Use
	debuglog.debug_log_dump_to_file() instead of
	debug_log_dump_to_stderr().
	(errors_exit_with_fatal_exception): Likewise.

	* lib/util.py (debug_print): Really remove this (hadn't I deleted
	it before!?).

	* lib/debuglog.py (DebugLog.load_configuration): Removed stale comment.
	(debug_log): Add documentation.
	(debug_log_current_exception): Likewise.
	(debug_log_load_configuration): Likewise.
	(debug_log_is_domain_enabled): Likewise.
	(debug_log_dump_as_list): Likewise.
	(debug_log_dump_to_stderr): Likewise.
	(debug_log_dump_configuration): New function; dumps the debug log
	configuration to an open file.
	(debug_log_dump_to_dated_file): New function; dumps the debug log
	to a unique file.
	(DebugLog.dump_configuration): New method to implement the above.
	(debug_log_dump_to_file): Renamed from debug_log_dump_to_stderr();
	now dumps the log to a given file.

	* lib/config.py.in (LOG_CONFIG_FILENAME): New constant.
	(BUG_TRACKING_SYSTEM): New constant, set to
	"http://bugzilla.gnome.org";.

	* admin-tool/sabayon-session: Use config.LOG_CONFIG_FILENAME.
	Compute an adequate fallback for the log config filename if none
	is provided in the command line.

	* admin-tool/sabayon-apply: Likewise.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]