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

Disable log writing to disk #994

Open
abitrolly opened this issue Aug 16, 2017 · 2 comments
Open

Disable log writing to disk #994

abitrolly opened this issue Aug 16, 2017 · 2 comments

Comments

@abitrolly
Copy link
Contributor

To create less stress for HDD drives that write block data, it could be useful to only output log data to the screen. It can be possible if --logdir= with no argument meant to disable log writing. For people who need to write logs into current directory, a variant --logdir=. with dot at the end could be used.

@abitrolly
Copy link
Contributor Author

The check for an empty string could be added here

btcd/config.go

Line 581 in 01f26a1

cfg.LogDir = cleanAndExpandPath(cfg.LogDir)
but processing requires stabbing initLogRotator call and log write calls. It is better if they could be abstracted into one class.

@abraithwaite
Copy link

abraithwaite commented Dec 13, 2017

I'd like to log to stdout/stderr for systemd/docker configurations.

Edit: The server does both, but I still don't want to log to disk. :-)

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

2 participants