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

no stderr / stdout in the log files #25

Closed
krychu opened this issue Jun 22, 2013 · 1 comment
Closed

no stderr / stdout in the log files #25

krychu opened this issue Jun 22, 2013 · 1 comment

Comments

@krychu
Copy link

krychu commented Jun 22, 2013

Hi,
I'm using chaussette with circus and meinheld. But I cannot get any stderr / stdout messages from the webapp even though these streams are redirected to the log files. I know that the webapp throws some exceptions but the log files are completely empty. If I run webapp manually without using chaussette I do get all messages in the console. Can it be that chaussette swallows the messages? Or perhaps meinheld? Or perhaps I'm missing something in the configuration? Or perhaps stderr / stdout are not correctly captured because of the virtualenv / copy_env ?

Below is my circus.ini file. Thanks

endpoint = tcp://127.0.0.1:5555
pubsub_endpoint = tcp://127.0.0.1:5556
stats_endpoint = tcp://127.0.0.1:5557
httpd = True
httpd_host = 0.0.0.0
httpd_port = 8080
debug = True

[watcher:web]
working_dir = /home/k/projects/g/src/webapp
copy_env = True
virtualenv = /home/k/projects/g/ENV
cmd = chaussette --fd $(circus.sockets.web) --backend meinheld webapp.app
use_sockets = True
numprocesses = 1
warmup_delay = 5

# stdout_stream.class = StdoutStream
# stderr_stream.class = StdoutStream

stderr_stream.class = FileStream
stderr_stream.filename = /var/log/webapp_err.log
stderr_stream.refresh_time = 0.3
# rotate the log file when it reaches 1 gb
# and save N copies of rotated files
stderr_stream.max_bytes = 1073741824
stderr_stream.backup_count = 2

stdout_stream.class = FileStream
stdout_stream.filename = /var/log/webapp_out.log
stdout_stream.refresh_time = 0.3
# rotate the log file when it reaches 1 gb
# and save N copies of rotated files
stdout_stream.max_bytes = 1073741824
stdout_stream.backup_count = 2
@krychu
Copy link
Author

krychu commented Jun 22, 2013

I moved the question to the circus project as it might be more appropriate place to ask.

@krychu krychu closed this as completed Jun 22, 2013
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

No branches or pull requests

1 participant