Skip to content

log 信息中缺失refer logid cookie等信息 #14

@antupwork

Description

@antupwork

TRACE: 23-07-06 15:08:58 [-:-] errno[0] logId[-] uri[-] user[-] refer[-] cookie[-] custom[-] [yog-ral] [cluster main][JsonConverter] unpack json data succ ServiceID=xxxx

NOTICE: 23-07-06 15:08:58 [-:-] errno[0] logId[-] uri[-] user[-] refer[-] cookie[-] custom[-] [yog-ral] [cluster main][RAL] request end service=HK_MOBILE_HOME requestID=2922197650 conv=querystring/json prot=http method=GET path=/?_format=json proxy=undefined query={"_format":"json"} remote=xxxxx cost=620.876 talk=619.824 write=618.308 read=0.629 pack=0.004 unpack=0.634 retry=0/2
在yog-log/index.js 716行处使用了parseReqParams,传入req进行header中的参数获取写入日志,但是在ral调用yog-log的地方并没有相关req的参数传入,导致 refer cookie为空

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions