remove keys in welcome message

This commit is contained in:
mpostma 2020-05-19 10:24:03 +02:00
parent ef7b1cc829
commit a1d20ea8c8

View File

@ -110,16 +110,8 @@ pub fn print_launch_resume(opt: &Opt, data: &Data) {
eprintln!(); eprintln!();
if let Some(master_key) = &data.api_keys.master { if data.api_keys.master.is_some() {
eprintln!("Master Key:\t{:?}", master_key); eprintln!("A Master Key has been set. Requests to MeiliSearch won't be authorized unless you provide an authentication key.");
if let Some(private_key) = &data.api_keys.private {
eprintln!("Private Key:\t{:?}", private_key);
}
if let Some(public_key) = &data.api_keys.public {
eprintln!("Public Key:\t{:?}", public_key);
}
} else { } else {
eprintln!("No master key found; The server will accept unidentified requests. \ eprintln!("No master key found; The server will accept unidentified requests. \
If you need some protection in development mode, please export a key: export MEILI_MASTER_KEY=xxx"); If you need some protection in development mode, please export a key: export MEILI_MASTER_KEY=xxx");