diff --git a/matrixbot.go b/matrixbot.go
index 69ea3810f6dbbc13451c325fe13c6b93091f1172..2604f8fcd5c59bee008f4d1be4a2e24595531342 100644
--- a/matrixbot.go
+++ b/matrixbot.go
@@ -77,7 +77,8 @@ func (bot *MatrixBot) Serve(endpoint string) {
 	http.HandleFunc("/healthz", func(writer http.ResponseWriter, request *http.Request) {
 		_, _ = io.WriteString(writer, "OK\n")
 	})
-	http.HandleFunc(bot.pushUrl.RequestURI(), func(writer http.ResponseWriter, request *http.Request) {
+	log.Printf("listening for push notifications on %s\n", bot.pushUrl.Path)
+	http.HandleFunc(bot.pushUrl.Path, func(writer http.ResponseWriter, request *http.Request) {
 		log.Println("Received push notification")
 		notification, err := api.ParseNotification(request.Body)
 		if err != nil {
@@ -105,5 +106,6 @@ func (bot *MatrixBot) Serve(endpoint string) {
 		}
 		writer.WriteHeader(204)
 	})
+	fmt.Printf("listening for requests on %s\n", endpoint)
 	log.Fatal(http.ListenAndServe(endpoint, nil))
 }