summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2016-02-02 12:22:56 -0700
committerBert JW Regeer <bertjw@regeer.org>2016-02-02 12:22:58 -0700
commit5ec93dc8c06b7838a9ed8a9f40cfa333b3ba1da2 (patch)
tree8f791d854b18b4f1a861a6508d4e028dbce6dbfe
parent131d3f6116c9b66dee862a18d75ee18e356a0171 (diff)
downloadpyramid-5ec93dc8c06b7838a9ed8a9f40cfa333b3ba1da2.tar.gz
pyramid-5ec93dc8c06b7838a9ed8a9f40cfa333b3ba1da2.tar.bz2
pyramid-5ec93dc8c06b7838a9ed8a9f40cfa333b3ba1da2.zip
Deprecate --log-file
As we remove the daemonisation code, we want to also deprecate features that only make sense when you are running as a deamon. Logging to a file currently does not allow log rotation for example, and really logging should be done external to pserve
-rw-r--r--pyramid/scripts/pserve.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyramid/scripts/pserve.py b/pyramid/scripts/pserve.py
index 3ea614eb5..431afe6f4 100644
--- a/pyramid/scripts/pserve.py
+++ b/pyramid/scripts/pserve.py
@@ -114,7 +114,7 @@ class PServeCommand(object):
'--log-file',
dest='log_file',
metavar='LOG_FILE',
- help="Save output to the given log file (redirects stdout)")
+ help="Save output to the given log file (redirects stdout) [DEPRECATED]")
parser.add_option(
'--reload',
dest='reload',
@@ -287,7 +287,7 @@ class PServeCommand(object):
base = os.getcwd()
# warn before setting a default
- if self.options.pid_file:
+ if self.options.pid_file or self.options.log_file:
self._warn_daemon_deprecated()
if getattr(self.options, 'daemon', False):
@@ -675,7 +675,7 @@ in a future release per Pyramid's deprecation policy. Please consider using
a real process manager for your processes like Systemd, Circus, or Supervisor.
The following commands are deprecated:
- [start,stop,restart,status] --daemon, --stop-server, --status, --pid-file
+ [start,stop,restart,status] --daemon, --stop-server, --status, --pid-file, --log-file
''')
class LazyWriter(object):