Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove log messages #48

Closed
Raizo62 opened this issue Apr 11, 2018 · 3 comments
Closed

How to remove log messages #48

Raizo62 opened this issue Apr 11, 2018 · 3 comments

Comments

@Raizo62
Copy link

Raizo62 commented Apr 11, 2018

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.

@johang
Copy link
Owner

johang commented Aug 1, 2018

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

@lyndalopez544
Copy link

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

@Raizo62
Copy link
Author

Raizo62 commented Jun 3, 2019

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

DrDub added a commit to DrDub/btfs that referenced this issue Dec 19, 2023
Set the logger to /dev/null when run with -s or --silent.
@johang johang closed this as completed in 0a35b06 Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants