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 695444 - Use standard logging
Use standard logging
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: tracker-general
Depends on:
Blocks:
 
 
Reported: 2013-03-08 14:25 UTC by Colin Walters
Modified: 2013-03-08 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Colin Walters 2013-03-08 14:25:33 UTC
In the current gnome-ostree, tracker is pretty much alone in putting its own log files in ~/.local/share/tracker.  It should stop doing this, and just write to stdout, which will be attached to whatever the system is using for logging.
Comment 1 Martyn Russell 2013-03-08 14:37:39 UTC
Hi Colin, is there a policy or wiki page to follow for this?

I didn't think there was a policy for logging. We're happy to accommodate in most cases, but I would like to know why? :)

Also, we're not just a GNOME project, we're a freedesktop project hosted on GNOME servers. So we try to be agnostic.

Still, I am conformist at the best of times so... :)

Changing this btw, would be really easy. We would still keep the logging as a feature for those that want it because it's been incredibly useful in bug reporting and fixing issues.
Comment 2 Colin Walters 2013-03-08 15:01:11 UTC
(In reply to comment #1)

> I didn't think there was a policy for logging. We're happy to accommodate in
> most cases, but I would like to know why? :)

I'm not aware of any documentation/policy on this.  But quite simply, tracker is a unique snowflake here.

For gnome-ostree at least, I have things set up now so *everything*, including what was formerly in ~/.xsession-errors goes to the systemd journal, and it's quite nice.

Would you take a configure option?
Comment 3 Martyn Russell 2013-03-08 16:12:09 UTC
Fixed in master. This should be in 0.15.3 and 0.16.0.

commit 5ed0bbc68e356d924198790e19cbf22d6a5ff8f0
Author: Martyn Russell <martyn@lanedo.com>
Date:   Fri Mar 8 15:42:42 2013 +0000

    libtracker-common: Don't log to file by default, only stdout/stderr
    
    This is actually only useful for debugging anyway and can be switched on again
    by starting tracker processes by setting the environment variable
    TRACKER_USE_LOG_FILES before starting each process.
    
    Log files can still be found in either ~/.xsession-errors,
    ~/.cache/gdm/session.log or systemd journals depending on the system.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695444