Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
    npro  
 Modern all-safe Rust Network Protocol library supporting h1, h2, h3, ws, wt sans-IO and with socket IO + tls
git clone https://npro.rs/repo/npro
 
root / scripts / etc-rc.d-sai_builder-OpenBSD
Author[]Andy Green <andy@warmcat.com> 2026-03-26 09:55 UTC
Committer[]Andy Green <andy@warmcat.com> 2026-03-26 09:59 UTC
Tree2ec4111afcec5c1118d15e1a3421ffb496247abf   Raw Patch
 
logging: quieten
logging: quieten
diff --git a/src/server/s-power.c b/src/server/s-power.c index 4e681e2..0546b7e 100644 --- a/src/server/s-power.c +++ b/src/server/s-power.c @@ -410,7 +410,7 @@ sais_power_tx(struct vhd *vhd, struct pss *pss, uint8_t *buf, size_t bl) r = sqlite3_exec(vhd->server.pdb, query, cb_lookup_pcon, &ctx, NULL); - lwsl_notice("%s: platform '%s' -> pcon query '%s': result %d\n", + lwsl_info("%s: platform '%s' -> pcon query '%s': result %d\n", __func__, pl->plat, query, r); if (r != SQLITE_OK) @@ -422,7 +422,7 @@ sais_power_tx(struct vhd *vhd, struct pss *pss, uint8_t *buf, size_t bl) } lws_end_foreach_dll(px); - lwsl_notice("%s: final pcon list: '%.*s'\n", __func__, + lwsl_info("%s: final pcon list: '%.*s'\n", __func__, (int)lws_ptr_diff_size_t(p, start), start); /* @@ -438,7 +438,7 @@ sais_power_tx(struct vhd *vhd, struct pss *pss, uint8_t *buf, size_t bl) } if (diff) { - lwsl_notice("%s: ************* detected jobs for %.*s\n", __func__, + lwsl_info("%s: ************* detected jobs for %.*s\n", __func__, (int)lws_ptr_diff_size_t(p, start), start); if (lws_write(pss->wsi, start, lws_ptr_diff_size_t(p, start), diff --git a/src/server/s-task.c b/src/server/s-task.c index 2d03759..6f72e9e 100644 --- a/src/server/s-task.c +++ b/src/server/s-task.c @@ -53,7 +53,7 @@ sais_event_check_for_plat_tasks(struct vhd *vhd, const char *event_uuid, sai_event_db_close(&vhd->sqlite3_cache, &check_pdb); - lwsl_notice("%s: event %s, platform %s: count %u\n", __func__, event_uuid, + lwsl_info("%s: event %s, platform %s: count %u\n", __func__, event_uuid, platform, count); return count > 0; @@ -84,7 +84,7 @@ sais_is_task_inflight(struct vhd *vhd, sai_plat_t *build, const char *uuid, if (hit) *hit = ul; - lwsl_notice("%s: %s is inflight on %s (of %d)\n", __func__, + lwsl_info("%s: %s is inflight on %s (of %d)\n", __func__, uuid, build->name, build->inflight_owner.count); return 1; @@ -209,7 +209,7 @@ sais_task_pending(struct vhd *vhd, struct pss *pss, sai_plat_t *cb, goto bail; } - lwsl_notice("%s: plat %s, toplevel results %d\n", __func__, platform, o.count); + lwsl_info("%s: plat %s, toplevel results %d\n", __func__, platform, o.count); lws_dll2_owner_clear(&failed_tasks_owner); @@ -244,7 +244,7 @@ sais_task_pending(struct vhd *vhd, struct pss *pss, sai_plat_t *cb, // lwsl_notice("%s: %s: platform: '%s' startable tasks: %d\n", __func__, e->uuid, esc_plat, pending_count); if (pending_count <= 0) { - lwsl_notice("%s: platform %s: no pending count\n", __func__, platform); + lwsl_info("%s: platform %s: no pending count\n", __func__, platform); goto close_next; } @@ -390,7 +390,7 @@ sais_task_pending(struct vhd *vhd, struct pss *pss, sai_plat_t *cb, next1: ; } lws_end_foreach_dll(p_fail); - lwsl_notice("%s: no priority\n", __func__); + lwsl_info("%s: no priority\n", __func__); /* We have fallen back to doing tasks earliest-first */ @@ -408,7 +408,7 @@ next1: ; if (!owner.count || !pss->ac_alloc_task) goto close_next; - lwsl_notice("%s: orig exit\n", __func__); + lwsl_info("%s: orig exit\n", __func__); sai_event_db_close(&vhd->sqlite3_cache, &pdb); lwsac_free(&ac); lwsac_free(&failed_ac); @@ -427,7 +427,7 @@ bail: lwsac_free(&ac); lwsac_free(&failed_ac); - lwsl_notice("%s: leaving by bail\n", __func__); + lwsl_info("%s: leaving by bail\n", __func__); return NULL; } @@ -608,7 +608,7 @@ sais_allocate_task(struct vhd *vhd, struct pss *pss, sai_plat_t *sp, task_template = sais_task_pending(vhd, pss, sp, platform_name); if (!task_template) { - lwsl_notice("%s: %s: can't identify pending task\n", + lwsl_info("%s: %s: can't identify pending task\n", __func__, sp->name); return 1; } @@ -631,7 +631,7 @@ sais_allocate_task(struct vhd *vhd, struct pss *pss, sai_plat_t *sp, } if (sais_is_task_inflight(vhd, NULL, task_template->uuid, NULL)) { - lwsl_notice("%s: ~~~~~~~~ skipping %s as listed on inflight\n", + lwsl_info("%s: ~~~~~~~~ skipping %s as listed on inflight\n", __func__, task_template->uuid); return 1; } @@ -642,7 +642,7 @@ sais_allocate_task(struct vhd *vhd, struct pss *pss, sai_plat_t *sp, sais_bind_task_to_builder(vhd, sp->name, sp->name, task_template->uuid); - lwsl_notice("%s: %s: task %s found for %s\n", __func__, + lwsl_info("%s: %s: task %s found for %s\n", __func__, platform_name, task_template->uuid, sp->name); if (sais_create_and_offer_task_step(vhd, task_template->uuid)) @@ -990,7 +990,7 @@ sais_plat_find_jobs_cb(lws_sorted_usec_list_t *sul) { sai_plat_t *sp = lws_container_of(sul, sai_plat_t, sul_find_jobs); - lwsl_notice("%s: %s: sp->busy: %d\n", __func__, sp->name, sp->busy); + lwsl_info("%s: %s: sp->busy: %d\n", __func__, sp->name, sp->busy); if (!sp->busy && sp->wsi && lws_wsi_user(sp->wsi) && /* @@ -1018,7 +1018,7 @@ sais_plat_busy(sai_plat_t *sp, char set) } sp->busy = 0; - lwsl_notice("%s: %s: CLEARING BUSY\n", __func__, sp->name); + lwsl_info("%s: %s: CLEARING BUSY\n", __func__, sp->name); lws_sul_schedule(sp->cx, 0, &sp->sul_find_jobs, sais_plat_find_jobs_cb, 1); diff --git a/src/server/s-ws-builder.c b/src/server/s-ws-builder.c index 1bf0ee4..1738aa6 100644 --- a/src/server/s-ws-builder.c +++ b/src/server/s-ws-builder.c @@ -1497,9 +1497,8 @@ sais_ws_json_tx_builder(struct vhd *vhd, struct pss *pss, uint8_t *buf, lwsac_free(&task->ac_task_container); free(task); - sai_dump_stderr(start, w); - - lwsl_err("%s: ########## ATTACH TASK --^\n", __func__); + // sai_dump_stderr(start, w); + // lwsl_info("%s: ########## ATTACH TASK --^\n", __func__); first = 1; diff --git a/src/server/s-ws-web.c b/src/server/s-ws-web.c index d0752f5..6fe1033 100644 --- a/src/server/s-ws-web.c +++ b/src/server/s-ws-web.c @@ -288,7 +288,7 @@ sais_list_builders(struct vhd *vhd) sai_plat_t *live_builder; sp = lws_container_of(walk, sai_plat_t, sai_plat_list); - lwsl_notice("%s: listing builder '%s', pcon='%s'\n", __func__, sp->name, sp->pcon ? sp->pcon : "(null)"); + lwsl_info("%s: listing builder '%s', pcon='%s'\n", __func__, sp->name, sp->pcon ? sp->pcon : "(null)"); live_builder = sais_builder_from_uuid(vhd, sp->name); diff --git a/src/web/w-ws-browser.c b/src/web/w-ws-browser.c index 9ad2c23..570679a 100644 --- a/src/web/w-ws-browser.c +++ b/src/web/w-ws-browser.c @@ -1287,7 +1287,7 @@ saiw_browser_broadcast_queue_builders(struct vhd *vhd, struct pss *pss) lws_struct_json_serialize_result_t r; char start_of_this_builder = 1; - lwsl_notice("%s: processing builder '%s' (online %d)\n", __func__, b->name, b->online); + lwsl_info("%s: processing builder '%s' (online %d)\n", __func__, b->name, b->online); js = lws_struct_json_serialize_create( lsm_schema_map_plat_simple,
Page fetched 0s ago, creation time: 18ms (vhost etag hits: 0%, cache hits: 0%)