Skip to content

Commit 53a10f6

Browse files
committed
Fix: fix incorrect log package
Signed-off-by: Daishan Peng <[email protected]>
1 parent 0671453 commit 53a10f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/runner/runner.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111

1212
"github.com/gptscript-ai/gptscript/pkg/engine"
1313
"github.com/gptscript-ai/gptscript/pkg/types"
14+
"github.com/sirupsen/logrus"
1415
"golang.org/x/sync/errgroup"
15-
"google.golang.org/appengine/log"
1616
)
1717

1818
type MonitorFactory interface {
@@ -121,7 +121,8 @@ func (r *Runner) call(callCtx engine.Context, monitor Monitor, env []string, inp
121121
Content: *result.Result,
122122
})
123123
if err := recordStateMessage(result.State); err != nil {
124-
log.Warningf(callCtx.Ctx, "Failed to record state message: %v", err)
124+
// Log a warning message if failed to record state message so that it doesn't affect the main process if state can't be recorded
125+
logrus.Warningf("Failed to record state message: %v", err)
125126
}
126127
return *result.Result, nil
127128
}

0 commit comments

Comments
 (0)