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 131045 - Output to syslog
Output to syslog
Status: RESOLVED FIXED
Product: bonobo-activation [was: oaf]
Classification: Deprecated
Component: general
cvs (head)
Other Linux
: Normal trivial
: ---
Assigned To: Michael Meeks
Luis Villa
Depends on:
Blocks: 90983
 
 
Reported: 2004-01-09 22:18 UTC by Michael Terry
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (12.75 KB, patch)
2004-01-09 22:20 UTC, Michael Terry
none Details | Review
Revised patch (8.05 KB, patch)
2004-01-12 19:51 UTC, Michael Terry
none Details | Review
Revised patch with missing ChangeLog changes (9.22 KB, patch)
2004-01-12 22:06 UTC, Michael Terry
none Details | Review

Description Michael Terry 2004-01-09 22:18:53 UTC
Attached is a patch to make bonobo-activation and activation-server output
messages to syslog.  In addition, I removed some FIXME code that looked
related and changed some message calls to fit the new code.

This feature was requested in bug 90983.
Comment 1 Michael Terry 2004-01-09 22:20:20 UTC
Created attachment 23183 [details] [review]
Proposed patch
Comment 2 Michael Meeks 2004-01-12 10:35:38 UTC
This is a nice patch; can you re-hash it a little before re-diffing
and committing to HEAD though?

a) we want to avoid churning stuff to syslog in the common case -
since that makes everything very slow (sync. disk access there).
I'm not convinced that we arn't unconditionally churning debug to
syslog; we need a 'output debug messages' type setting a-la gconf to
control that.

b) We don't want the g_log trapping stuff in the bonobo-activation
client-side code, only for the server IMHO.

c) We should acknowledge Havoc's copyright on the syslog stuff - since
this is cut/paste from gconf.

Apart from that: looks great :-) Many thanks for this.
Comment 3 Michael Terry 2004-01-12 19:51:59 UTC
Created attachment 23278 [details] [review]
Revised patch
Comment 4 Michael Terry 2004-01-12 19:54:52 UTC
This revised patch removes the client changes (bonobo-activation/*),
includes a ChangeLog entry which, among other things, notes the
inspiration from GEdit (though this is not a simple cut/paste), and
respects the environment variable BONOBO_ACTIVATION_DEBUG_OUTPUT.  It
only outputs debug messages to syslog if it is compiled for debugging
AND that environment variable is defined.  Comments?

I cannot check this in, so if you find it suitable, please do so for me.
Comment 5 Michael Terry 2004-01-12 22:06:15 UTC
Created attachment 23284 [details] [review]
Revised patch with missing ChangeLog changes
Comment 6 Michael Meeks 2004-02-03 11:59:41 UTC
Checked this in a while back - thanks.