kaaveland / eugene

Careful With that Lock, Eugene
MIT License
31 stars 0 forks source link

Add logging setup that can be switched on from the cmd line #59

Closed kaaveland closed 1 month ago

kaaveland commented 1 month ago

We should log the NodeRef we're trying to match in ast, so we can pass --debug to the linter and have the debug representation of the node printed to stderr. This is probably a nice thing to have in other places too, but I found that I locally add a print there from time to time, since using the debugger on the 200-variant enum isn't very useful, so this place in particular is important. Probably also when we mutate the TransactionState in the linter in any way.