Troubleshooting
This page contains information on how to troubleshoot common issues when using water
in a Go project.
Enable wazero
debug logs
wazero
is the WebAssembly runtime with WASI support that water
uses. To enable debug logs from wazero
, pass the values below via the context.Context
.
// example of enabling FileSystem, Poll, and Sock logging scopes of wazero
ctx = context.WithValue(ctx, experimental.FunctionListenerFactoryKey{},
logging.NewHostLoggingListenerFactory(os.Stderr, logging.LogScopeFilesystem|logging.LogScopePoll|logging.LogScopeSock))