btfs icon indicating copy to clipboard operation
btfs copied to clipboard

How to remove log messages

Open Raizo62 opened this issue 6 years ago • 3 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.

Raizo62 avatar Apr 11 '18 09:04 Raizo62

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

johang avatar Aug 01 '18 20:08 johang

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

lyndalopez544 avatar Jun 01 '19 21:06 lyndalopez544

@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.

Raizo62 avatar Jun 03 '19 16:06 Raizo62