fix: improved logs for script

This commit is contained in:
Ruben Fiszel
2025-07-29 20:51:43 +00:00
parent b5afff9cc1
commit 2e7ab919a7
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
e871ff90d272ac171258fe0e1c23020242bba35f
1391ce425d7523876c17d04667f703a58d1e23aa
+1
View File
@@ -933,6 +933,7 @@ async fn create_script_internal<'c>(
}
let permissioned_as = username_to_permissioned_as(&authed.username);
tracing::info!("creating script {hash:?} at path {script_path} on workspace {w_id}");
if needs_lock_gen {
let tag = if ns.dedicated_worker.is_some_and(|x| x) {
Some(format!("{}:{}", &w_id, &ns.path,))
@@ -203,7 +203,7 @@ fn parse_ts_relative_imports(raw_code: &str, script_path: &str) -> error::Result
let normalized = normalized.to_str().unwrap().to_string();
relative_imports.push(normalized);
} else {
tracing::error!("error canonicalizing path: {:?}", normalized);
tracing::error!("error canonicalizing path: {script_path} with import {import}");
}
}
}