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



Author: federico
Date: 2007-02-15 23:38:06 +0000 (Thu, 15 Feb 2007)
New Revision: 634
ViewCVS link: http://svn.gnome.org/viewcvs/sabayon?rev=634&view=rev

Modified:
   branches/debug-log/ChangeLog
   branches/debug-log/admin-tool/changeswindow.py
   branches/debug-log/admin-tool/editorwindow.py
   branches/debug-log/admin-tool/lockdownappliersabayon.py
   branches/debug-log/admin-tool/profilesdialog.py
   branches/debug-log/admin-tool/sabayon-apply
   branches/debug-log/admin-tool/sabayon-session
   branches/debug-log/admin-tool/sessionwidget.py
   branches/debug-log/admin-tool/sessionwindow.py
   branches/debug-log/lib/Makefile.am
   branches/debug-log/lib/cache.py
   branches/debug-log/lib/debuglog.py
   branches/debug-log/lib/dirmonitor.py
   branches/debug-log/lib/errors.py
   branches/debug-log/lib/mozilla_bookmarks.py
   branches/debug-log/lib/protosession.py
   branches/debug-log/lib/sources/filessource.py
   branches/debug-log/lib/sources/gconfsource.py
   branches/debug-log/lib/sources/mozillasource.py
   branches/debug-log/lib/sources/paneldelegate.py
   branches/debug-log/lib/storage.py
   branches/debug-log/lib/userdb.py
   branches/debug-log/lib/usermod.py
   branches/debug-log/lib/userprofile.py
   branches/debug-log/lib/util.py
Log:
2007-02-15  Federico Mena Quintero  <federico novell com>

	* lib/Makefile.am (PYTHON_FILES): Added debuglog.py, errors.py.

	* lib/errors.py (errors_exit_helper_normally): New utility function to
	exit normally from the helper programs, dumping the debug log as
	appropriate.
	(errors_exit_with_fatal_exception): New utility function to exit
	when a fatal exception happens after dumping the debug log.

	* admin-tool/sabayon-apply: Oops, import "debuglog" and "errors".
	Use optparser for argument parsing.  Add --sabayon-session as an
	alias for the -s option.  Add a --log-config option to specify
	where to read the options for the debug log.  Use
	errors_exit_normally() and errors_exit_with_fatal_exception().
	(dprint): Use debuglog.debug_log().
	(mprint): New function to print milestones.

	* admin-tool/sabayon-session: Add the same toplevel logging
	machinery as sabayon-apply.

	* lib/util.py (EXIT_CODE_FATAL, EXIT_CODE_RECOVERABLE): Moved the
	exit codes for the helper programs to here.
	(init_debug_modules): Removed; moved the logic for deprecation
	warnings to debug_log_load_configuration().  Also removed the
	debug domains; moved them to debuglog.py.
	(debug_print): Removed.

	* lib/debuglog.py (DEBUG_LOG_DOMAIN_SABAYON_SESSION): New domain
	for sabayon-session.  Move the debug log domains from util.py to
	here.
	(debug_log_load_configuration): Disble deprecation warnings unless
	DEBUG_LOG_DOMAIN_DEPRECATED is enabled (moved from
	util.py:init_debug_modules().

	* admin-tool/profilesdialog.py (dprint): Use debuglog.debug_log
	rather than debug_print()
	* admin-tool/changeswindow.py (dprint): Likewise.
	* admin-tool/lockdownappliersabayon.py (dprint): Likewise.
	* admin-tool/sessionwindow.py (dprint): Likewise.
	* admin-tool/editorwindow.py (dprint): Likewise.
	* admin-tool/sessionwidget.py (dprint): Likewise.
	* lib/sources/mozillasource.py (dprint): Likewise.
	* lib/sources/paneldelegate.py (dprint): Likewise.
	* lib/sources/gconfsource.py (dprint): Likewise.
	* lib/sources/filessource.py (dprint): Likewise.
	* lib/mozilla_bookmarks.py (dprint): Likewise.
	* lib/userprofile.py (dprint): Likewise.
	* lib/cache.py (dprint): Likewise.
	* lib/storage.py (dprint): Likewise.
	* lib/protosession.py (dprint): Likewise.
	* lib/usermod.py (dprint): Likewise.
	* lib/dirmonitor.py (dprint): Likewise.
	* lib/userdb.py (dprint): Likewise.

	* lib/sources/mozillasource.py (dwarn): Removed unused function.




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