Add logging in customaction