mirror of
https://github.com/romanz/electrs.git
synced 2025-02-24 06:57:53 +01:00
Append to log file
This commit is contained in:
parent
9af0df224f
commit
5e48e1e1dc
1 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,7 @@ extern crate simplelog;
|
|||
|
||||
extern crate indexrs;
|
||||
|
||||
use std::fs::OpenOptions;
|
||||
use indexrs::{daemon, index, store, waiter};
|
||||
|
||||
fn setup_logging() {
|
||||
|
@ -13,7 +14,11 @@ fn setup_logging() {
|
|||
WriteLogger::new(
|
||||
LevelFilter::Info,
|
||||
cfg.clone(),
|
||||
std::fs::File::create("indexrs.log").unwrap(),
|
||||
OpenOptions::new()
|
||||
.create(true)
|
||||
.append(true)
|
||||
.open("indexrs.log")
|
||||
.unwrap(),
|
||||
),
|
||||
]).unwrap();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue