Bug 329671

Summary: Ktorrent should allow disabling logging to disk
Product: [Applications] ktorrent Reporter: Alex Richardson <arichardson.kde>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=411152
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alex Richardson 2014-01-06 23:17:21 UTC
I would like to reduce the number of disk writes on my system and it seems ktorrent writes to its logfile at least once per second.

As far as I was able to see from my brief look at the sources, there seems to be no way to disable this logging to disk.
app.cpp unconditionally calls bt::InitLog(kt::DataDir() + "log", true);

It would be nice if logging could be disabled by setting some config options or making the log file a symlink to /dev/null. This does not work unfortunately since the current log file is removed and a new one is created.

Ideally for me there would be a config option in the GUI that allows disabling logging to disk (stdout/stderr could however still be nice). But if there is any possible workaround I'm happy with that as well.

Reproducible: Always
Comment 1 Christoph Feck 2014-01-07 02:34:03 UTC

*** This bug has been marked as a duplicate of bug 320733 ***