Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logging handler: may raise error on some mac #130

Open
wjo1212 opened this issue May 15, 2019 · 0 comments
Open

logging handler: may raise error on some mac #130

wjo1212 opened this issue May 15, 2019 · 0 comments
Labels
Not Reproducible 无法重现

Comments

@wjo1212
Copy link
Collaborator

wjo1212 commented May 15, 2019

Traceback (most recent call last):
File "log_test.py", line 5, in
from aliyun.log import *
File "/Library/Python/2.7/site-packages/aliyun_log_python_sdk-0.6.45-py2.7.egg/aliyun/log/init.py", line 39, in
from .logger_hanlder import SimpleLogHandler, QueuedLogHandler, LogFields, UwsgiQueuedLogHandler
File "/Library/Python/2.7/site-packages/aliyun_log_python_sdk-0.6.45-py2.7.egg/aliyun/log/logger_hanlder.py", line 57, in
BUILTIN_LOG_FIELDS_NAMES.update(set(LogFields[x].value for x in BUILTIN_LOG_FIELDS_NAMES))
File "/Library/Python/2.7/site-packages/aliyun_log_python_sdk-0.6.45-py2.7.egg/aliyun/log/logger_hanlder.py", line 57, in
BUILTIN_LOG_FIELDS_NAMES.update(set(LogFields[x].value for x in BUILTIN_LOG_FIELDS_NAMES))
TypeError: 'type' object has no attribute 'getitem'

root cause:
seems it's using builtin enum which doesn't support [x] operations.

@wjo1212 wjo1212 added the Not Reproducible 无法重现 label May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not Reproducible 无法重现
Projects
None yet
Development

No branches or pull requests

1 participant