Преглед на файлове

Feat: CLI Debug Warning (#3779)

* feat: cli debug warning

* fix: fmt
Miles Murgaw преди 4 месеца
родител
ревизия
9c5f9882d9
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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(),