Skip to content

Commit 752770f

Browse files
committed
prefix engine run logs
1 parent 9e2729c commit 752770f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/webapp/app/v3/runEngineHandlers.server.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export function registerRunEngineEventBusHandlers() {
401401
engine.eventBus.on("executionSnapshotCreated", async ({ time, run, snapshot }) => {
402402
const eventResult = await recordRunDebugLog(
403403
run.id,
404-
`${snapshot.executionStatus} - ${snapshot.description}`,
404+
`[engine] ${snapshot.executionStatus} - ${snapshot.description}`,
405405
{
406406
attributes: {
407407
properties: {
@@ -450,6 +450,7 @@ export function registerRunEngineEventBusHandlers() {
450450
// Record notification event
451451
const eventResult = await recordRunDebugLog(
452452
run.id,
453+
// don't prefix this with [engine] - "run:notify" is the correct prefix
453454
`run:notify platform -> supervisor: ${snapshot.executionStatus}`,
454455
{
455456
attributes: {
@@ -479,6 +480,7 @@ export function registerRunEngineEventBusHandlers() {
479480
// Record notification event
480481
const eventResult = await recordRunDebugLog(
481482
run.id,
483+
// don't prefix this with [engine] - "run:notify" is the correct prefix
482484
`run:notify ERROR platform -> supervisor: ${snapshot.executionStatus}`,
483485
{
484486
attributes: {
@@ -505,7 +507,7 @@ export function registerRunEngineEventBusHandlers() {
505507
engine.eventBus.on("incomingCheckpointDiscarded", async ({ time, run, snapshot, checkpoint }) => {
506508
const eventResult = await recordRunDebugLog(
507509
run.id,
508-
`Checkpoint discarded: ${checkpoint.discardReason}`,
510+
`[engine] Checkpoint discarded: ${checkpoint.discardReason}`,
509511
{
510512
attributes: {
511513
properties: {

0 commit comments

Comments
 (0)