Selaa lähdekoodia

Feat: CLI Debug Warning (#3779)

* feat: cli debug warning

* fix: fmt
Miles Murgaw 4 kuukautta sitten
vanhempi
commit
9c5f9882d9
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      packages/cli/src/main.rs

+ 4 - 0
packages/cli/src/main.rs

@@ -41,6 +41,10 @@ async fn main() {
     }
 
     let args = TraceController::initialize();
+
+    #[cfg(debug_assertions)]
+    tracing::warn!("CLI was built with debug profile. Commands will run slower.");
+
     let result = match args.action {
         Commands::Translate(opts) => opts.translate(),
         Commands::New(opts) => opts.create(),