fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.98k stars 294 forks source link

Logs from JULIA_DEBUG="loading" are not visible #2487

Open fonsp opened 1 year ago

fonsp commented 1 year ago

If you run JULIA_DEBUG="Pluto,loading", then start Pluto, then start a notebook, then import a package, then you should see these loading logs:

      From worker 2:    ┌ Debug: Ignoring cache file /Users/fons/.julia/compiled/v1.8/SnoopPrecompile/TcfDT_eiJGP.ji for SnoopPrecompile [66db9d55-30c0-4569-8b51-7e840670fc0c] since it is does not provide desired build_id
      From worker 2:    └ @ Base loading.jl:2082
      From worker 2:    ┌ Debug: Loading cache file /Users/fons/.julia/compiled/v1.8/Preferences/pWSk8_8JDRZ.ji for Preferences [21216c6a-2e73-6563-6e65-726566657250]
      From worker 2:    └ @ Base loading.jl:806
      From worker 2:    ┌ Debug: Loading cache file /Users/fons/.julia/compiled/v1.8/SnoopPrecompile/TcfDT_8JDRZ.ji for SnoopPrecompile [66db9d55-30c0-4569-8b51-7e840670fc0c]
      From worker 2:    └ @ Base loading.jl:806
      From worker 2:    ┌ Debug: Loading cache file /Users/fons/.julia/compiled/v1.8/Parsers/833b9_zge78.ji for Parsers [69de0a69-1ddd-5017-9359-2bf0b02dc9f0]
      From worker 2:    └ @ Base loading.jl:806
      From worker 2:    ┌ Debug: Loading cache file /Users/fons/.julia/compiled/v1.8/JSON/uf6oy_zge78.ji for JSON [682c06a0-de6a-54ab-a142-c8b1cf79cde6]
      From worker 2:    └ @ Base loading.jl:806
      From worker 2:    ┌ Debug: Loading cache file /Users/fons/.julia/compiled/v1.8/BenchmarkTools/ZXPQo_8wiMI.ji for BenchmarkTools [6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf]
      From worker 2:    └ @ Base loading.jl:806

I only see these logs because I disabled all IO and log capture (https://github.com/fonsp/Pluto.jl/tree/pg/pkg) but they should not be hidden silently.

I think we are hiding them because they are the DEBUG level, and they do not originate from the notebook itself.

fonsp commented 1 year ago

This is caused by #2509