yeagerai / genlayer-simulator

MIT License
16 stars 8 forks source link

GenVM-A lot of stderr #630

Open AgustinRamiroDiaz opened 3 days ago

AgustinRamiroDiaz commented 3 days ago

When running ask_for_coin I got a lot of stderr. Is it possible to have a cleaner output? In this case, I think nothing has failed, so having stderr is confusing

execution finished

{
result:"ExecutionReturn(ret=b'\x00')"
stderr:"{"id":"<contract>","level":"INFO","message":"","method":"make_from_arch","target":"runner","timestamp":1732281160758}
{"id":"py-genlayer:test","level":"INFO","message":"","method":"make_from_arch","target":"runner","timestamp":1732281160758}
{"id":"py-lib-cloudpickle:SZ2YUZ4IBHUOFTOHM3DOANHHQEGQKYCHJI3IRLCAVYBQR632BAO2BIFWQR2433L3E4LLWNLV2TP6AT7X2ZAXJSXWEYRJ2U24XMXASOQ=","level":"INFO","message":"","method":"make_from_arch","target":"runner","timestamp":1732281160759}
{"id":"py-genlayer-std:test","level":"INFO","message":"","method":"make_from_arch","target":"runner","timestamp":1732281160760}
{"id":"genvm-cpython:FFAO5GX6KLNP3JQPCU2LUMSJX3LX7A6AMNHMZH5N25DJM35H2REAXUWZWSHAJGI3WLESKEUDXVDAADMK447FABTHVY552G63T2JJBFQ=","level":"INFO","message":"","method":"make_from_arch","target":"runner","timestamp":1732281160923}
{"id":"softfloat:5VML6RYPX3UU3GOE4IESJLJLWHUOTSJK3M6XUEXEL3HDA65DZWCY2YMZ4MYIRGTQKZEDZXAA2X57RA4AMCGV4IK4EF5CKITMTTXWXEQ=","level":"INFO","message":"","method":"make_from_arch","target":"runner","timestamp":1732281160991}
{"genlayer_sdk":{"config":{"can_read_storage":true,"can_spawn_nondet":true,"can_write_storage":true,"is_deterministic":true},"message":{"contract_account":"7xJFVywxp+UR89Y5GBk9II5MnK8=","is_init":false,"sender_account":"GrEYis5HJEs/sJh9taS634iI3AI=","value":null}},"level":"INFO","message":"","method":"run","target":"vm","timestamp":1732281162081,"wasi_preview1":{"args":"py\u0000-u\u0000-c\u0000import contract;import genlayer.std.runner as r;r.run(contract)\u0000","env":"PYTHONPATH=/py/libs:/py/std:/py/libs\u0000pwd=/\u0000"}}
{"event":"execution start","level":"INFO","message":"","target":"rt","timestamp":1732281162082}
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
{"duration":"772.64226ms","event":"execution finished","level":"INFO","message":"","target":"rt","timestamp":1732281162854}
"
stdout:"executed with `Return("\x00")`
"
}
kp2pml30 commented 3 days ago

passing --log-level=WARN to args should help

as of these 2 lines

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>

that's from python, that can't be removed. I will look into it later, if it is a problem

I prefer more logs though, maybe we can add yet another .env variable for that