From 855c34fe3d74bb442574bb1b807fadd82f792d65 Mon Sep 17 00:00:00 2001 From: innuendo <1178453+hilaryRope@users.noreply.github.com> Date: Sat, 13 Jul 2024 03:23:19 +0200 Subject: [PATCH] chore: remove LogTrace as it is not exposed by the CLI and adjust the README.md, accordingly (#38) Co-authored-by: corda.ilaria@gmail.com --- README.md | 7 +++---- extism_pdk.go | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dd5de86..ed0dfbe 100644 --- a/README.md +++ b/README.md @@ -193,9 +193,8 @@ Extism provides a simple [logging function](https://pkg.go.dev/github.com/extism func logStuff() int32 { pdk.Log(pdk.LogInfo, "An info log!") pdk.Log(pdk.LogDebug, "A debug log!") - pdk.Log(pdk.LogWarn, "A trace log!") + pdk.Log(pdk.LogWarn, "A warn log!") pdk.Log(pdk.LogError, "An error log!") - pdk.Log(pdk.LogTrace, "A trace log!") return 0 } ``` @@ -203,11 +202,11 @@ func logStuff() int32 { From [Extism CLI](https://github.com/extism/cli): ```bash -extism call plugin.wasm log_stuff --wasi --log-level=trace +extism call plugin.wasm log_stuff --wasi --log-level=debug 2023/10/12 12:11:23 Calling function : log_stuff 2023/10/12 12:11:23 An info log! 2023/10/12 12:11:23 A debug log! -2023/10/12 12:11:23 A trace log! +2023/10/12 12:11:23 A warn log! 2023/10/12 12:11:23 An error log! ``` diff --git a/extism_pdk.go b/extism_pdk.go index fee867f..2f4383a 100644 --- a/extism_pdk.go +++ b/extism_pdk.go @@ -19,7 +19,6 @@ const ( LogDebug LogWarn LogError - LogTrace ) func load(offset extismPointer, buf []byte) {