From 5ec93dc8c06b7838a9ed8a9f40cfa333b3ba1da2 Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Tue, 2 Feb 2016 12:22:56 -0700 Subject: 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 --- pyramid/scripts/pserve.py | 6 +++--- 1 file 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): -- cgit v1.2.3