Comments (4)
But all logs are written to the file /var/log/circus/pier.err . And NO content in the file /var/log/circus/pier.err.
Did you mean /var/log/circus/pier.log stays empty ? I suspect that's because Pyramid sends its log to the stderr only. You should configure Pyramid itself to send data to the right stream
from chaussette.
@tarekziade I think that the problem is that Chaussette is not loading the logging configuration from the paster app .ini, like for example Pyramid pserve and gunicorn does.
It's possible to have it in chaussette too? This will prevent to have different ways to configure logging depending of the scenario.
This is how Pyramid does it (similar to Gunicorn way):
path, _ = _getpathsec(config_uri, None)
parser = configparser.ConfigParser()
parser.read([path])
if parser.has_section('loggers'):
config_file = os.path.abspath(path)
return fileConfig(
config_file,
dict(__file__=config_file, here=os.path.dirname(config_file))
)
I think that I can make a patch to make Chaussette support it. What do you think?
V.
from chaussette.
@tarekziade Just opened a pull request (#32) that just does that.
Cheers,
V.
from chaussette.
Merged, thanks. Make sure you add yourself to THANKS
from chaussette.
Related Issues (20)
- errors thrown by backends or chaussette enter infinite loop HOT 5
- Chaussette does not log requests HOT 1
- Thread Exception when running Chaussette with gevent backend on a Django1.6 wsgi app HOT 18
- custom backend config HOT 4
- Add a -t --timeout option to let chaussette die if the request took more than TIMEOUT seconds. HOT 1
- Support graceful shutdown HOT 2
- SocketIO backend seems broken with latest version of gevent-socketio ('Server' object has no attribute 'config') HOT 7
- Chaussette vs. G-event+Redis (?!) HOT 6
- Need to add tornado in the docs
- waitress compat broken HOT 2
- File descriptors don't seemed to be closed after deletion HOT 3
- Cannot SIGTERM chaussette
- The --python-path argument doesn't do anything
- Non-ascii URL errors HOT 1
- Chaussette does not work anymore with waitress v1.0.0 HOT 4
- Raise the test coverage to 90%+
- Enable Bjoern in Python 3
- Chaussette under python3.6 can't discover gevent backend
- chaussette does not work with waitress > 0.9
- maintainership HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chaussette.