So your action handler is logging something. Which means that when a action happens, log something, trigger a log action, log something, trigger a log action, etc.
You end up in an infinite loop, that's why it crashes
Have a look here if you want to avoid that: https://github.com/skpm/sketch-dev-tools/blob/master/src/catch-all-actions.js