Giter Site home page Giter Site logo

gunicorn config log格式錯誤 about ap-api HOT 5 CLOSED

takidog avatar takidog commented on August 10, 2024
gunicorn config log格式錯誤

from ap-api.

Comments (5)

abc873693 avatar abc873693 commented on August 10, 2024

有相關資料可以作為參考?
沒有明確資料佐證是正確log

from ap-api.

takidog avatar takidog commented on August 10, 2024

v2的log 很明顯沒有照著這個格式輸出
v2 log

92.168.240.3 - 1105103222 [03/Jul/2019:03:31:08 +0800] "GET /v2/ap/users/scores/107/2 HTTP/1.1" 200 495 "-" "Dart/2.3 (dart:io)

現行v3 log

[08/Sep/2019:11:05:45 +0000] [api.v3] [172.19.0.3] [PostmanRuntime/7.16.3] [POST] [/oauth/token] [200]

(從docker撈可能有些雜,手機排版)

from ap-api.

abc873693 avatar abc873693 commented on August 10, 2024

我覺得可能是之前學長需要有他們需要的資料才這樣定義
裡面也會記錄學號
v3有打算移除?

from ap-api.

takidog avatar takidog commented on August 10, 2024

我覺得可能是之前學長需要有他們需要的資料才這樣定義
裡面也會記錄學號
v3有打算移除?

v3沒有辦法從gunicorn這一層去紀錄(JWT auth )
v2走http basic auth 才可以的樣子

之前是定義了 但是變數命名錯誤 gunicorn並沒有使用到定義的資料

v2 的format 中有存在 "[api.v2] " 在log並沒有出現
我在測試中將那行刪除也並沒有改變log的輸出,可以確定沒有吃到那行設定

from ap-api.

abc873693 avatar abc873693 commented on August 10, 2024

如果目前v�2不影響
這個問題就移動至v3處理
就先把它關閉了

from ap-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.