File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 10
10
11
11
DB=./db2 # $HOME/tmp/electrs_db/mainnet_zstd
12
12
CMD=" target/release/electrs --network $NETWORK --db-dir $DB --daemon-dir $HOME /.bitcoin"
13
- export RUST_LOG=${RUST_LOG-info}
13
+ # export RUST_LOG=${RUST_LOG-info}
14
14
$CMD $*
15
15
16
16
# use SIGINT to quit
Original file line number Diff line number Diff line change @@ -267,6 +267,12 @@ impl Config {
267
267
}
268
268
} ) ;
269
269
270
+ let level = match config. verbose {
271
+ 0 => log:: LevelFilter :: Info ,
272
+ 1 => log:: LevelFilter :: Debug ,
273
+ _ => log:: LevelFilter :: Trace ,
274
+ } ;
275
+
270
276
let config = Config {
271
277
network : config. network ,
272
278
db_path : config. db_dir ,
@@ -286,6 +292,7 @@ impl Config {
286
292
env_logger:: Builder :: from_default_env ( )
287
293
. default_format ( )
288
294
. format_timestamp_millis ( )
295
+ . filter_level ( level)
289
296
. init ( ) ;
290
297
config
291
298
}
You can’t perform that action at this time.
0 commit comments