mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Log to console by default. #832
Version 19 removed any logging by default. This logs everything to the console by default.
This commit is contained in:
parent
901d8f94b3
commit
7be15d6334
@ -90,7 +90,7 @@
|
|||||||
])
|
])
|
||||||
return iter([data])
|
return iter([data])
|
||||||
|
|
||||||
(tutorial) $ ../bin/gunicorn --log-file - -w 4 myapp:app
|
(tutorial) $ ../bin/gunicorn -w 4 myapp:app
|
||||||
[2014-09-10 10:22:28 +0000] [30869] [INFO] Listening at: http://127.0.0.1:8000 (30869)
|
[2014-09-10 10:22:28 +0000] [30869] [INFO] Listening at: http://127.0.0.1:8000 (30869)
|
||||||
[2014-09-10 10:22:28 +0000] [30869] [INFO] Using worker: sync
|
[2014-09-10 10:22:28 +0000] [30869] [INFO] Using worker: sync
|
||||||
[2014-09-10 10:22:28 +0000] [30874] [INFO] Booting worker with pid: 30874
|
[2014-09-10 10:22:28 +0000] [30874] [INFO] Booting worker with pid: 30874
|
||||||
|
|||||||
@ -1,6 +1,22 @@
|
|||||||
Changelog - 2014
|
Changelog - 2014
|
||||||
================
|
================
|
||||||
|
|
||||||
|
20.0 / unreleased
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
Changes
|
||||||
|
-------
|
||||||
|
|
||||||
|
Core
|
||||||
|
++++
|
||||||
|
|
||||||
|
- fix `#863 <https://github.com/benoitc/gunicorn/issues/863`_: fix race condition error.
|
||||||
|
|
||||||
|
Logging
|
||||||
|
+++++++
|
||||||
|
|
||||||
|
- fix `#832 <https://github.com/benoitc/gunicorn/issues/835>`_: log to console by default.
|
||||||
|
|
||||||
19.1.1 / 2014-08-16
|
19.1.1 / 2014-08-16
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
|||||||
@ -100,8 +100,9 @@ to remove this issue.
|
|||||||
Why I don't see any logs in the console?
|
Why I don't see any logs in the console?
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
||||||
Since the version R19, Gunicorn doesn't log by default in the console.
|
In version R19, Gunicorn doesn't log by default in the console.
|
||||||
To watch the logs in the console you now need to use the option ``--log-file=-``.
|
To watch the logs in the console you need to use the option ``--log-file=-``.
|
||||||
|
In version R20, Gunicorn logs to the console by default again.
|
||||||
|
|
||||||
Kernel Parameters
|
Kernel Parameters
|
||||||
=================
|
=================
|
||||||
|
|||||||
@ -1,6 +1,22 @@
|
|||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
20.0 / unreleased
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
Changes
|
||||||
|
-------
|
||||||
|
|
||||||
|
Core
|
||||||
|
++++
|
||||||
|
|
||||||
|
- fix `#863 <https://github.com/benoitc/gunicorn/issues/863`_: fix race condition error.
|
||||||
|
|
||||||
|
Logging
|
||||||
|
+++++++
|
||||||
|
|
||||||
|
- fix `#832 <https://github.com/benoitc/gunicorn/issues/832`_: log to console by default.
|
||||||
|
|
||||||
19.1.1 / 2014-08-16
|
19.1.1 / 2014-08-16
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
|||||||
@ -469,12 +469,15 @@ errorlog
|
|||||||
~~~~~~~~
|
~~~~~~~~
|
||||||
|
|
||||||
* ``--error-logfile FILE, --log-file FILE``
|
* ``--error-logfile FILE, --log-file FILE``
|
||||||
* ``None``
|
* ``-``
|
||||||
|
|
||||||
The Error log file to write to.
|
The Error log file to write to.
|
||||||
|
|
||||||
"-" means log to stderr.
|
"-" means log to stderr.
|
||||||
|
|
||||||
|
.. versionchanged:: 20.0
|
||||||
|
Log to ``stderr`` by default.
|
||||||
|
|
||||||
loglevel
|
loglevel
|
||||||
~~~~~~~~
|
~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@ -1045,7 +1045,7 @@ class ErrorLog(Setting):
|
|||||||
cli = ["--error-logfile", "--log-file"]
|
cli = ["--error-logfile", "--log-file"]
|
||||||
meta = "FILE"
|
meta = "FILE"
|
||||||
validator = validate_string
|
validator = validate_string
|
||||||
default = None
|
default = '-'
|
||||||
desc = """\
|
desc = """\
|
||||||
The Error log file to write to.
|
The Error log file to write to.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user