From 6769b08818c7ce49be700cadab45c44fe554ee90 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Thu, 2 Mar 2017 12:44:16 +0100 Subject: [PATCH] Log errors except 404 --- src/asciinema/yada.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asciinema/yada.clj b/src/asciinema/yada.clj index afea114..b310196 100644 --- a/src/asciinema/yada.clj +++ b/src/asciinema/yada.clj @@ -16,7 +16,7 @@ (defn logger [ctx] (when-let [error (:error ctx)] - (when (= (-> ctx :response :status) 500) + (when (not= (-> ctx :response :status) 404) (log/error error)))) (defn resource [model]