ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
550 stars 66 forks source link

expose current Eio backend in use as a string variable #545

Closed avsm closed 1 year ago

avsm commented 1 year ago

It's currently not possible to log which Eio backend is in use, and we should expose a way to do this (potentially from Eio_main, but elsewhere is fine too).

Reported by @quernd

talex5 commented 1 year ago

Yes, something like backend_id : string in Stdenv.base should do it.

bord-o commented 1 year ago

Hey this would be my first contribution, but I can take this on if that's ok. I already have a working version.

talex5 commented 1 year ago

@bord-o: sounds good - feel free to open a PR!

talex5 commented 1 year ago

Done in #560.