wip: nats multi cluster, fixing helm command to follow multiple k8s config by providing the helm command from the topology itself, fix cli_logger that can now be initialized multiple times, some more stuff
This commit is contained in:
@@ -7,11 +7,14 @@ use harmony::{
|
||||
};
|
||||
use log::{error, info, log_enabled};
|
||||
use std::io::Write;
|
||||
use std::sync::Mutex;
|
||||
use std::sync::{Mutex, OnceLock};
|
||||
|
||||
pub fn init() {
|
||||
configure_logger();
|
||||
handle_events();
|
||||
static INITIALIZED: OnceLock<()> = OnceLock::new();
|
||||
INITIALIZED.get_or_init(|| {
|
||||
configure_logger();
|
||||
handle_events();
|
||||
});
|
||||
}
|
||||
|
||||
fn configure_logger() {
|
||||
|
||||
Reference in New Issue
Block a user