Skip to content

Commit 7065f51

Browse files
committed
fix message when no uploader_key is specified
1 parent ae46c9a commit 7065f51

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/cli/cmds/server.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,6 @@ fn panic_handler(message: Box<dyn Any + Send + 'static>) -> Response<Body> {
271271

272272
fn print_banner() {
273273
let mut stdout = io::stdout().lock();
274-
275-
let _ = writeln!(stdout);
276274
let _ = writeln!(
277275
stdout,
278276
"» Booting up {} v{}, compiled with Rust v{}",

src/config/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,10 @@ impl Config {
131131
cfg.merge(file);
132132
if cfg.uploader_key.is_empty() {
133133
let key = __generated_uploader_key();
134-
eprintln!("[ume WARN] Missing a uploader key for encoding JWT tokens, but I have generated one for you: {key}\n
135-
Set this in the `UME_UPLOADER_KEY` environment variable when loading the server or in the `uploader_key` in your `config.hcl` file.\n
136-
If any other key replaces this, then all JWT tokens will no longer be able to be verified, so it is recommended to keep this safe somewhere");
134+
eprintln!("[ume WARN] Missing a uploader key for authentication! I have generated one for you:\n
135+
\t\t{key}\n
136+
Set this in the `UME_UPLOADER_KEY` environment variable when loading the server or in the `uploader_key` in your `config.hcl` file.
137+
If any other key replaces this, then it'll no longer be verified. It is recommended to keep this safe somewhere");
137138

138139
cfg.uploader_key = key;
139140
}

0 commit comments

Comments
 (0)