about summary refs log tree commit diff
path: root/src/rest-api/handler
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2024-05-02 17:35:56 +0200
committerBaitinq <[email protected]>2024-05-02 17:45:48 +0200
commite8c75ec9678459f2a938a4471729526c4d73808c (patch)
treef33a8b9c6dcaf0042d457535bd6ffa14671b4cda /src/rest-api/handler
parentFix gazelle warning (diff)
downloadfs-tracer-backend-e8c75ec9678459f2a938a4471729526c4d73808c.tar.gz
fs-tracer-backend-e8c75ec9678459f2a938a4471729526c4d73808c.tar.bz2
fs-tracer-backend-e8c75ec9678459f2a938a4471729526c4d73808c.zip
payload-processor: add stub
Diffstat (limited to 'src/rest-api/handler')
-rw-r--r--src/rest-api/handler/handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rest-api/handler/handler.go b/src/rest-api/handler/handler.go
index b5c3ae2..c904ff4 100644
--- a/src/rest-api/handler/handler.go
+++ b/src/rest-api/handler/handler.go
@@ -26,7 +26,7 @@ func NewHandler(ch *amqp.Channel, queueName string) *Handler {
 func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 	bytes, err := io.ReadAll(io.Reader(r.Body))
 	if err != nil {
-		panic(err)
+		log.Fatal(err)
 	}
 
 	body := fmt.Sprint("Hello World!", r.RemoteAddr, string(bytes))