codeskyblue / codeskyblue/python-loggingserver

Flaky behaviour under Twisted 10.1

未关闭
#3 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
auto-migrated Priority-Medium Type-Defect
主要语言
Python
星标
0
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

```
What steps will reproduce the problem?
1. Run the server with twistd following instructions
2. Start 2 test logging processes
3. watch tail -n 30 process.log

What is the expected output? What do you see instead?

The two processes should be interleaving their log messages into the output
process.log. Instead, some random number of messages from one or the other
make it into process.log, then it just stops adding info to process.log. The
number of log entries that make it to process.log varies unpredictably.

What version of the product are you using? On what operating system?

Latest svn as of 11-06-2010, Twisted 10.1, Python 2.7, on OS X 10.6.4.

Please provide any additional information below.

I'm sure this is related to the other open issue regarding logging to the
process.log stopping when the last process generating messages quits. It seems
that any change of state kills the output to process.log including stopping the
last remaining logger or starting a second SocketLogger.

I'm guessing that __init__ being called more than once clobbers the state of
logging by re-config'ing it.

Moving that initialization code out of __init__ solves the problem!

That change has been posted to my github repository.

S

```

Original issue reported on code.google.com by `sstein...@gmail.com` on 7 Nov 2010 at 1:39

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。