Open mikeyoungyoung opened 7 years ago
Currently using this for a POC app. One thing I can figure out (probably user error...) is how to suppress the connection logging, i.e. the following:
opening connection to api.clarifai.com:443... opened starting SSL for api.clarifai.com:443... SSL established <- "GET /v2/tag?model&url=https%3A%2F%2Fs3.amazonaws.com%2XXXXXXXX.jpg HTTP/1.1\r\nAuthorization: Bearer\r\nConnection: close\r\nHost: api.clarifai.com\r\n\r\n" -> "HTTP/1.1 404 Not Found\r\n" -> "Content-Type: text/plain; charset=utf-8\r\n" -> "Date: Wed, 21 Dec 2016 20:50:50 GMT\r\n" -> "Server: nginx\r\n" -> "X-Content-Type-Options: nosniff\r\n" -> "Content-Length: 60\r\n" -> "Connection: Close\r\n" -> "\r\n"
any way to do this?
hi @mikeyoungyoung it's a little terrible but it's hardcoded into the code right now. I'll put up a PR that makes this configurable.
Currently using this for a POC app. One thing I can figure out (probably user error...) is how to suppress the connection logging, i.e. the following:
opening connection to api.clarifai.com:443... opened starting SSL for api.clarifai.com:443... SSL established <- "GET /v2/tag?model&url=https%3A%2F%2Fs3.amazonaws.com%2XXXXXXXX.jpg HTTP/1.1\r\nAuthorization: Bearer\r\nConnection: close\r\nHost: api.clarifai.com\r\n\r\n" -> "HTTP/1.1 404 Not Found\r\n" -> "Content-Type: text/plain; charset=utf-8\r\n" -> "Date: Wed, 21 Dec 2016 20:50:50 GMT\r\n" -> "Server: nginx\r\n" -> "X-Content-Type-Options: nosniff\r\n" -> "Content-Length: 60\r\n" -> "Connection: Close\r\n" -> "\r\n"
any way to do this?