[tor-commits] [snowflake/main] Refactor event logger setting into function call