diff --git a/app/controllers/stripe_event/webhook_controller.rb b/app/controllers/stripe_event/webhook_controller.rb
index <HASH>..<HASH> 100644
--- a/app/controllers/stripe_event/webhook_controller.rb
+++ b/app/controllers/stripe_event/webhook_controller.rb
@@ -7,12 +7,20 @@ module StripeEvent
         end
       end
     end
-    
+
     def event
       StripeEvent.instrument(params)
       head :ok
-    rescue StripeEvent::UnauthorizedError
+    rescue StripeEvent::UnauthorizedError => e
+      log_error(e)
       head :unauthorized
     end
+
+    private
+
+    def log_error(e)
+      logger.error e.message
+      e.backtrace.each { |line| logger.error "  #{line}" }
+    end
   end
 end
Add error logging to WebhookController

For easier debugging.

Fixes #<I>