Bug 329671 - Ktorrent should allow disabling logging to disk
Summary: Ktorrent should allow disabling logging to disk
Status: RESOLVED DUPLICATE of bug 320733
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-06 23:17 UTC by Alex Richardson
Modified: 2019-08-22 06:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***