fix:R->RELEASE;D->DEBUG
This commit is contained in:
parent
a7395d187b
commit
ae3c21c5a0
1 changed files with 4 additions and 4 deletions
|
|
@ -65,9 +65,9 @@ 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";
|
let mut mode = "R";
|
||||||
if cfg!(debug_assertions) {
|
if cfg!(debug_assertions) {
|
||||||
mode = "DEBUG";
|
mode = "D";
|
||||||
}
|
}
|
||||||
|
|
||||||
let (mut client, event_rx) = Client::new();
|
let (mut client, event_rx) = Client::new();
|
||||||
|
|
@ -120,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, mode)
|
format!("{} 📶{} ms 🐏{} mb {}", conf.commands.name, t, ram, mode)
|
||||||
} else {
|
} else {
|
||||||
format!("{} 📶{} ms [{}]", conf.commands.name, -t, mode)
|
format!("{} 📶{} ms {}", conf.commands.name, -t, mode)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue