Bert JW Regeer
2016-02-02 5ec93dc8c06b7838a9ed8a9f40cfa333b3ba1da2
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
1 files modified
6 ■■■■ changed files
pyramid/scripts/pserve.py 6 ●●●● patch | view | raw | blame | history
pyramid/scripts/pserve.py
@@ -114,7 +114,7 @@
        '--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 @@
        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 @@
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):