Add logging to oauth action