阿里云SLS日志服务,如果slsHandler写失败,会影响程序运行么
免费的SLS服务到期了,正好可以用来验证这个问题,验证结果: 1、业务流程正常 2、写本地文件的日志还能正常记录 3、每次logger调用,都会在本地日志文件内出现如下内容 --- Logging error --- Traceback (most recent call last): File '/opt//.venv/lib/python3.6/site-packages/aliyun/log/logger_hanlder.py', line 484, in _post self.send(req) File '/opt/*****/.venv/lib/python3.6/site-packages/aliyun/log/logger_hanlder.py', line 189, in send return self.client.put_logs(req) File '/opt//.venv/lib/python3.6/site-packages/aliyun/log/logclient.py', line 483, in put_logs (resp, header) = self._send('POST', project, compress_data, resource, params, headers) File '/opt/****/.venv/lib/python3.6/site-packages/aliyun/log/logclient.py', line 326, in _send return self._sendRequest(method, url, params2, body, headers2, respons_body_type) File '/opt/*/.venv/lib/python3.6/site-packages/aliyun/log/logclient.py', line 280, in _sendRequest resp_status, resp_header, resp_body) aliyun.log.logexception.LogException: {'errorCode': 'ProjectForbidden', 'errorMessage': 'project ***** has been forbidden', 'requestId': '**'}
赞0
踩0