fix: convert error to string for instruments

pull/2867/head
Tienson Qin 2021-09-23 19:14:59 +08:00
parent b0d26c055f
commit 32ddeaa3c8
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@
(p/catch (fn [error]
(state/pub-event! [:instrument {:type :write-file/failed
:payload {:path path
:error error}}])
:error (str error)}}])
(log/error :write-file/failed {:path path
:content content
:error error}))))))