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
| | |
| | | '--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', |
| | |
| | | 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): |
| | |
| | | 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): |