Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit cf221cd

Browse files
committed
FF-408 remove logs that break with UTF-8 chars
1 parent b3c1151 commit cf221cd

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

app/Main.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@ postApi allHeaders file restUrl fileId = runReq (defaultHttpConfig {httpConfigCh
154154
(ReqBodyJson payload) -- use built-in options or add your own
155155
bsResponse -- specify how to interpret response
156156
(header "Authorization" (getOneHeader allHeaders "Authorization") <> port 8080)
157-
liftIO $ logStdOut (show (http (DataText.pack restUrl) /: "api" /: "v1" /: "filesystem" /: DataText.pack fileId /: "upload"))
158-
liftIO $ logStdOut $ S8.unpack (fileContentType file)
159-
liftIO $ logStdOut $ S8.unpack (responseBody r)
160157
return (responseBody r, responseStatusCode r, responseStatusMessage r)
161158

162159
download :: Application
@@ -229,7 +226,6 @@ getApi allHeaders restUrl = runReq (defaultHttpConfig {httpConfigCheckResponse =
229226
bsResponse -- specify how to interpret response
230227
(header "X-FF-IDS" (getOneHeader allHeaders "X-FF-IDS") <> header "Authorization" (getOneHeader allHeaders "Authorization") <> port 8080) --PORT !!
231228
-- mempty -- query params, headers, explicit port number, etc.
232-
liftIO $ logStdOut $ S8.unpack (responseBody r)
233229
return (responseBody r, responseStatusCode r, responseStatusMessage r)
234230

235231
delete :: Application
@@ -271,8 +267,6 @@ deleteApi allHeaders restUrl fileId = runReq (defaultHttpConfig {httpConfigCheck
271267
NoReqBody
272268
bsResponse
273269
(header "Authorization" (getOneHeader allHeaders "Authorization") <> port 8080) -- parentID not in Headers
274-
liftIO $ logStdOut $ S8.unpack (responseBody r)
275-
liftIO $ logStdOut (show (http (DataText.pack restUrl) /: "api" /: "v1" /: "filesystem" /: DataText.pack fileId /: "delete") )
276270
return (responseBody r, responseStatusCode r, responseStatusMessage r)
277271

278272
health :: Application

0 commit comments

Comments
 (0)