whitelabelling nits

This commit is contained in:
Ruben Fiszel
2025-07-18 09:05:43 +00:00
parent 8a020bcfd5
commit 673f10095d
2 changed files with 16 additions and 2 deletions
+6 -2
View File
@@ -2069,6 +2069,10 @@ async fn do_nativets(
.await?)
}
lazy_static::lazy_static! {
static ref LOG_TAG_NAME: String = std::env::var("LOG_TAG_NAME").unwrap_or("tag".to_string());
}
#[derive(Deserialize, Serialize, Default)]
pub struct PreviousResult<'a> {
#[serde(borrow)]
@@ -2264,8 +2268,8 @@ pub async fn handle_queued_job(
// println!("handle queue {:?}", SystemTime::now());
logs.push_str(&format!(
"job={} tag={} worker={} hostname={}\n",
&job.id, &job.tag, &worker_name, &hostname
"job={} {}={} worker={} hostname={}\n",
&job.id, *LOG_TAG_NAME, &job.tag, &worker_name, &hostname
));
if *NO_LOGS_AT_ALL {
+10
View File
@@ -13,6 +13,16 @@ export function sendUserToast(
errorMessage: string | undefined = undefined,
duration: number = 5000
): void {
if (globalThis.windmillToast) {
globalThis.windmillToast({
message,
error,
actions,
errorMessage,
duration
})
return
}
toast.push({
component: {
// https://github.com/zerodevx/svelte-toast/issues/115