Skip to content

Commit 810fa95

Browse files
committed
More fixes
1 parent ba47830 commit 810fa95

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

server/src/banner.rs

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,26 @@ pub fn print(config: &Config, meta: StorageMetadata) {
3131
}
3232

3333
fn status_info(config: &Config, scheme: &str, id: Uid) {
34-
let url = format!("{}://{}", scheme, config.parseable.address).underlined();
34+
let url = format!("\"{}://{}\"", scheme, config.parseable.address)
35+
.underlined();
36+
let mut credentials =
37+
String::from("\"As set in P_USERNAME and P_PASSWORD environment variables\"");
38+
3539
if config.is_default_creds() {
36-
eprintln!(
37-
"
40+
credentials = "\"Using default creds admin, admin. Please set credentials with P_USERNAME and P_PASSWORD.\"".red().to_string();
41+
}
42+
43+
eprintln!(
44+
"
3845
{}
39-
Running at: \"{}\"
46+
Running at: {}
4047
Credentials: {}
4148
Deployment UID: \"{}\"",
4249
"Parseable Server".to_string().bold(),
4350
url,
44-
"\"Using default creds admin, admin. Please set credentials with P_USERNAME and P_PASSWORD.\"".to_string().red(),
45-
id.to_string()
51+
credentials,
52+
id.to_string(),
4653
);
47-
} else {
48-
eprintln!(
49-
"
50-
{}
51-
Running at: \"{}\"
52-
Credentials: \"As set in P_USERNAME and P_PASSWORD environment variables\"
53-
Deployment UID: \"{}\"",
54-
"Parseable Server".to_string().bold(),
55-
url,
56-
id.to_string(),
57-
);
58-
}
5954
}
6055

6156
fn storage_info(config: &Config) {
@@ -105,7 +100,7 @@ pub mod about {
105100
Version: \"{}\"
106101
Commit: \"{}\"
107102
Docs: \"https://www.parseable.io/docs/introduction\"",
108-
"About:".to_string().blue().bold(),
103+
"About:".to_string().bold(),
109104
current_version,
110105
commit_hash
111106
);

server/src/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ impl Server {
271271
.long(Self::ADDRESS)
272272
.env("P_ADDR")
273273
.value_name("ADDR:PORT")
274-
.default_value("0.0.0.0:8000")
274+
.default_value("127.0.0.1:8000")
275275
.value_parser(validation::socket_addr)
276276
.help("The address on which the http server will listen."),
277277
)

0 commit comments

Comments
 (0)