johang / btfs

A bittorrent filesystem based on FUSE.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to remove log messages

Raizo62 opened this issue · comments

Hi

I want to use btfs on a Live distribution (Debian) : all is on memoy.

Currently, i read files stored on a nfs server.
Now, i want to use a bittorrent server.

But, btfs does very verbose logs : with 5 minutes, all the memory is full

With the help of the doc of libtorrent, i tried to disable the logs : in the file btfs.cc, i replaced

                libtorrent::alert::tracker_notification |
                libtorrent::alert::stats_notification |  
                libtorrent::alert::storage_notification |
                libtorrent::alert::progress_notification |
                libtorrent::alert::status_notification | 
                libtorrent::alert::error_notification | 
                libtorrent::alert::dht_notification |
                libtorrent::alert::peer_notification;

by
0;

The program builds and runs. But, the files are not shared.

How can i remove these very verbose logs ?

Thanks.

Hmm, yeah. An option to remove all logging would be nice.

@Raizo62 How do you use the Debian Live Distro?
Anyway you can manually remove the logs too. Search here.

@aurora-of-earth : Thanks for you advice.
I use the distro LiveRaizo which works "only" with the RAM.
I have prefered to fork btfs to LiveBTFS to remove the Logs and also to download only bytes that are really needed by the client.