Gunicorn: 19.7 rilis

Dibuat pada 26 Feb 2017  ·  4Komentar  ·  Sumber: benoitc/gunicorn

tiket untuk melacak rilis versi 19.7

  • [x] tambahkan halaman manajemen proyek
  • [x] triase bug dalam proyek baru
  • [x] siapkan changelog
) top priority - Mailing List - release

Komentar yang paling membantu

19.7 dirilis

Semua 4 komentar

changelog selesai. rilis akan dilakukan besok

19.7 dirilis

Di salah satu server kami, menjalankan gunicorn. Kami memperhatikan bahwa setelah masalah koneksi Postgres, kami masih mendapatkan pengecualian ini:

2018-02-12 02:01:02 [1769] [ERROR] Exception in post_request hook
Traceback (most recent call last):
  File "/nix/store/ciwd5mg0mkcnw4bwhzap8g3k9630a0mp-python2.7-gunicorn-19.7.1/lib/python2.7/site-packages/gunicorn/workers/async.py", line 144, in handle_request
    self.cfg.post_request(self, req, environ, resp)
  File "/home/xxx/conf/gunicorn_prod.py", line 132, in post_request
    worker.nr, req.method, req.path, resp.status_code, total_time)
AttributeError: 'Response' object has no attribute 'status_code'

Berikut kode post_request:

def post_request(worker, req, environ, resp):
    total_time = time.time() - worker.start_time
    worker.log.debug(
        "GNCRN POST WORKER [cnt:%s]: %s %s resp: %s, Load Time: %.3fs",
        worker.nr, req.method, req.path, resp.status_code, total_time)
Apakah halaman ini membantu?
0 / 5 - 0 peringkat