如何停止与TIC SSL Trust Error Swift IOS相关的日志

时间:2019-03-08 07:15:30

标签: ios swift xcode alamofire error-log

我正在使用alamofire调用webservice api调用,并且可以正确正确地正常工作,但是仍然在日志窗口中继续打印一些日志,如何停止呢?或让我建议是否需要做任何事情。

以下日志在日志窗口中连续显示

2019-03-08 12:41:25.479725+0530 myproject[2557:64549] Task <F6052345-6B6C-4610-99CE-116C18C78716>.<1> finished with error - code: -1202
2019-03-08 12:41:41.472875+0530 myproject[2557:64549] TIC SSL Trust Error [30:0x6000001d4240]: 3:0
2019-03-08 12:41:41.477264+0530 myproject[2557:64549] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
2019-03-08 12:41:41.477505+0530 myproject[2557:64549] Task <69AEBD51-AE31-4CA0-99DB-433ACBAFCA62>.<1> HTTP load failed (error code: -1202 [3:-9813])

enter image description here

let headers = [           
        "Content-Type":"application/json"
    ]

let parameter = [
            "_id":1
        ]

Alamofire.request(urlString!, method: .post, parameters: parameter, encoding: JSONEncoding.default, headers: headers)
        .responseJSON { (response) in
            switch response.result {
            case .success:
               print(response)                   
            case .failure(let error):
                failure(["error_msg":"\(error.localizedDescription)"])
        }
}

0 个答案:

没有答案