Closed yqchilde closed 1 year ago
I do not understand exactly what is wrong. Is it the behaviour of yaegi extract
or the behaviour of log functions called from the interpreter ? If you need to avoid the virtualisation layer for the log package
, you can use yaegi -unrestricted
or in the shell: export YAEGI_UNRESTRICTED=1
.
Thanks.
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
v0.15.0
Additional Notes
https://github.com/traefik/yaegi/blob/master/extract/extract.go#L116
Because logFatal is defined in restricted, errors are reported in the final generated file. I wonder if this key should be ignored directly from the map