Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LogRequest variable to config input (#5197)
Fixes: DGRAPH-1123 This PR adds support for logRequest config param. logRequest can have true/false values. True value of logRequest enables logging of all requests coming to alphas. False value of logRequest disables it. Users will be able to dynamically change this param using graphql admin endpoint. Sample query: mutation { config(input: {logRequest: true}){ response { code message } } } Internally we have added one more field in WorkerOptions(WorkerConfig) called as LogRequest of int32 type. Value of this field is checked atomically upon every request arrival. If value of LogRequest is 1, it results in logging of requests. Co-authored-by: Ashish Goswami <[email protected]> (cherry picked from commit 449c06b)
- Loading branch information