Skip to content

fix-logger#14

Open
guidons-master wants to merge 1 commit intowanxingai:mainfrom
guidons-master:feature/fix-logger
Open

fix-logger#14
guidons-master wants to merge 1 commit intowanxingai:mainfrom
guidons-master:feature/fix-logger

Conversation

@guidons-master
Copy link

在 LightAgent 类的构造函数中,logger 属性只在 debug 参数为 True 时才会被初始化,但是在 LightSwarm 类的 register_agent 方法中,无论 debug 模式是否开启,都会尝试访问 agent.logger 属性,这导致了当以非 debug 模式创建 LightAgent 实例并在 LightSwarm 中注册时会出现 AttributeError 错误

@wxai-space
Copy link
Collaborator

When debug is not set, swarm does indeed encounter logger errors. Thank you for discovering this issue. We will fix it in the next update.

@wxai-space
Copy link
Collaborator

You can use the following command to update your lightagent version

pip install --upgrade lightagent>=0.4.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants