After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 398479 - Need to make errors visible
Need to make errors visible
Status: RESOLVED FIXED
Product: sabayon
Classification: Deprecated
Component: general
SVN trunk
Other All
: Normal major
: ---
Assigned To: Federico Mena Quintero
Maintainers of sabayon
Depends on:
Blocks:
 
 
Reported: 2007-01-19 19:52 UTC by Federico Mena Quintero
Modified: 2007-09-19 19:52 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Federico Mena Quintero 2007-01-19 19:52:43 UTC
Lots of things can go wrong while Sabayon unpacks a user profile, collects changes made to the configuration, packs the profile again, etc.  We use several helper procesess (sabayon-apply inside sabayon-session inside sabayon), and when an error occurs in one of them, the user often doesn't see the error.  We could use this information to make Sabayon more robust - either by fixing the bug which caused the error, or by handling that error condition gracefully.

The helper programs (sabayon-session, sabayon-apply) could exit with well-defined codes, which the parent process (sabayon) could use to present a meaningful error dialog to the user.  Something like

  exit(1) - means the child exited abnormally due to an unhandled exception
  exit(2) - means sabayon-apply could apply *most* of the profile, but it failed in some sections
  etc.

Then for (2) we could gather the exceptions from the failed bits and print them out nicely.
Comment 1 Sayamindu Dasgupta 2007-01-19 20:24:50 UTC
Just throwing random ideas here - but maybe the concept of a log file might be helpful here. Sysadmins are pretty comfortable with grepping through log files, and instead of blabbering in the background, Sabayon could maybe use logging module and put stuff in a log file (we can also make the log level configurable, or specifiable via a command line option).
Comment 2 Federico Mena Quintero 2007-01-23 03:43:57 UTC
Yeah.  I'll be working on this, since it will also help us debug the goddamn thing easily :)
Comment 3 Federico Mena Quintero 2007-03-07 19:06:08 UTC
This is happening in the "debug-log" branch, by the way:

  svn checkout svn+ssh://svn.gnome.org/svn/sabayon/branches/debug-log
Comment 4 Federico Mena Quintero 2007-04-13 19:20:38 UTC
This got merged yesterday (revision 715 in trunk).