avantgardnerio commented on PR #6505: URL: https://github.com/apache/arrow-datafusion/pull/6505#issuecomment-1570716698
> > Not a massive fan of the use of static constructors, but as this is a pre-existing pattern +1 > > FWIW the only alternative I know is to do what we do in IOx and sprinkle setup in all the tests: > > https://github.com/search?q=repo%3Ainfluxdata/influxdb_iox%20maybe_start_logging&type=code > > e.g. > > ```rust > #[test] > fn test_panic_counter_and_logging() { > maybe_start_logging(); > ``` > > Do you know a better pattern to enable logging during unit test run? yes, one second -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org