feat: add R or D to the name depending on how it was built
This commit is contained in:
parent
96b5dbe2f4
commit
a7395d187b
1 changed files with 6 additions and 2 deletions
|
|
@ -65,6 +65,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||||
|
|
||||||
let s = tokio::fs::read_to_string("config.hocon").await?;
|
let s = tokio::fs::read_to_string("config.hocon").await?;
|
||||||
let conf: Configuration = hocon::de::from_str(&s)?;
|
let conf: Configuration = hocon::de::from_str(&s)?;
|
||||||
|
let mut mode = "RELEASE";
|
||||||
|
if cfg!(debug_assertions) {
|
||||||
|
mode = "DEBUG";
|
||||||
|
}
|
||||||
|
|
||||||
let (mut client, event_rx) = Client::new();
|
let (mut client, event_rx) = Client::new();
|
||||||
let pool = PgPoolOptions::new()
|
let pool = PgPoolOptions::new()
|
||||||
|
|
@ -116,9 +120,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||||
let username = {
|
let username = {
|
||||||
let ram = ALLOCATOR.allocated() / 1_000_000;
|
let ram = ALLOCATOR.allocated() / 1_000_000;
|
||||||
if ram != 0 {
|
if ram != 0 {
|
||||||
format!("{} 📶{} ms 🐏{} mb ", conf.commands.name, t, ram)
|
format!("{} 📶{} ms 🐏{} mb [{}]", conf.commands.name, t, ram, mode)
|
||||||
} else {
|
} else {
|
||||||
format!("{} 📶{} ms", conf.commands.name, -t)
|
format!("{} 📶{} ms [{}]", conf.commands.name, -t, mode)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue