mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-25 00:01:55 +00:00
whitelabelling nits
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user