From b9ff2f41a9bf2b247ee599399479740d918cada4 Mon Sep 17 00:00:00 2001 From: Bohdan Ohorodnii Date: Fri, 10 Nov 2023 11:59:38 +0200 Subject: [PATCH] fix problem with logging --- api/src/handlers/compile_sierra.rs | 2 +- api/src/handlers/process.rs | 2 +- api/src/handlers/scarb_compile.rs | 2 +- api/src/handlers/scarb_test.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/src/handlers/compile_sierra.rs b/api/src/handlers/compile_sierra.rs index f56716f8..66b77154 100644 --- a/api/src/handlers/compile_sierra.rs +++ b/api/src/handlers/compile_sierra.rs @@ -11,7 +11,7 @@ use rocket::tokio::fs; use rocket::State; use std::path::{Path, PathBuf}; use std::process::{Command, Stdio}; -use tracing::{debug, instrument}; +use tracing::{debug, info, instrument}; #[instrument] #[get("/compile-to-sierra//")] diff --git a/api/src/handlers/process.rs b/api/src/handlers/process.rs index ff6574dd..a64a8dbb 100644 --- a/api/src/handlers/process.rs +++ b/api/src/handlers/process.rs @@ -1,7 +1,7 @@ use crate::handlers::types::{ApiCommand, ApiCommandResult}; use crate::worker::{ProcessState, WorkerEngine}; use rocket::State; -use tracing::instrument; +use tracing::{info, instrument}; use uuid::Uuid; #[instrument] diff --git a/api/src/handlers/scarb_compile.rs b/api/src/handlers/scarb_compile.rs index 2bd686c5..edb15028 100644 --- a/api/src/handlers/scarb_compile.rs +++ b/api/src/handlers/scarb_compile.rs @@ -10,7 +10,7 @@ use rocket::serde::json::Json; use rocket::State; use std::path::PathBuf; use std::process::{Command, Stdio}; -use tracing::instrument; +use tracing::{info, instrument}; #[instrument] #[get("/compile-scarb/")] diff --git a/api/src/handlers/scarb_test.rs b/api/src/handlers/scarb_test.rs index 4cd36993..85168c51 100644 --- a/api/src/handlers/scarb_test.rs +++ b/api/src/handlers/scarb_test.rs @@ -10,7 +10,7 @@ use rocket::serde::json::Json; use rocket::State; use std::path::PathBuf; use std::process::{Command, Stdio}; -use tracing::instrument; +use tracing::{info, instrument}; #[instrument] #[get("/scarb-test-async/")]