mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 13:36:50 +00:00
add startup logo (#528)
* add startup logo * Replace logo ASCII art in main.rs --------- Co-authored-by: houseme <housemecn@gmail.com> Co-authored-by: 安正超 <anzhengchao@gmail.com>
This commit is contained in:
@@ -74,6 +74,14 @@ use tracing::{debug, error, info, instrument, warn};
|
|||||||
#[global_allocator]
|
#[global_allocator]
|
||||||
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
|
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
|
||||||
|
|
||||||
|
const LOGO: &str = r#"
|
||||||
|
|
||||||
|
░█▀▄░█░█░█▀▀░▀█▀░█▀▀░█▀▀
|
||||||
|
░█▀▄░█░█░▀▀█░░█░░█▀▀░▀▀█
|
||||||
|
░▀░▀░▀▀▀░▀▀▀░░▀░░▀░░░▀▀▀
|
||||||
|
|
||||||
|
"#;
|
||||||
|
|
||||||
#[instrument]
|
#[instrument]
|
||||||
fn print_server_info() {
|
fn print_server_info() {
|
||||||
let current_year = chrono::Utc::now().year();
|
let current_year = chrono::Utc::now().year();
|
||||||
@@ -97,6 +105,9 @@ async fn main() -> Result<()> {
|
|||||||
// Initialize Observability
|
// Initialize Observability
|
||||||
let (_logger, guard) = init_obs(Some(opt.clone().obs_endpoint)).await;
|
let (_logger, guard) = init_obs(Some(opt.clone().obs_endpoint)).await;
|
||||||
|
|
||||||
|
// print startup logo
|
||||||
|
info!("{}", LOGO);
|
||||||
|
|
||||||
// Store in global storage
|
// Store in global storage
|
||||||
set_global_guard(guard).map_err(Error::other)?;
|
set_global_guard(guard).map_err(Error::other)?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user