Commit 0aa81b8 1 parent 26becfa commit 0aa81b8 Copy full SHA for 0aa81b8
File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 32
32
REPLEX_DISABLE_USER_STATE=0 \
33
33
REPLEX_ENABLE_CONSOLE=0 \
34
34
REPLEX_CACHE_TTL=600 \
35
- REPLEX_NTF_WATCHLIST_FORCE=1 \
36
35
RUST_LOG="info,replex=info" \
36
+ REPLEX_NTF_WATCHLIST_FORCE=1 \
37
37
RUSTFLAGS=-Awarnings \
38
38
cargo watch -w src -x run
39
39
Original file line number Diff line number Diff line change @@ -15,11 +15,7 @@ use tracing_subscriber::prelude::*;
15
15
#[ tokio:: main]
16
16
async fn main ( ) {
17
17
let config: Config = Config :: figment ( ) . extract ( ) . unwrap ( ) ;
18
- if config. host . is_none ( ) {
19
- tracing:: error!( "REPLEX_HOST is required. Exiting" ) ;
20
- return ;
21
- }
22
-
18
+
23
19
// set default log level
24
20
if let Err ( i) = env:: var ( "RUST_LOG" ) {
25
21
env:: set_var ( "RUST_LOG" , "info" )
@@ -62,6 +58,14 @@ async fn main() {
62
58
// .with(otlp_layer)
63
59
. with ( fmt_layer)
64
60
. init ( ) ;
61
+
62
+ if config. host . is_none ( ) {
63
+ tracing:: error!( "REPLEX_HOST is required. Exiting" ) ;
64
+ return ;
65
+ }
66
+ if config. token . is_none ( ) {
67
+ tracing:: warn!( "REPLEX_TOKEN not defined. Hero art might not load correctly." ) ;
68
+ }
65
69
66
70
// spawn our background task
67
71
// let mut plex_client = PlexClient::dummy();
You can’t perform that action at this time.
0 commit comments