diff options
| author | Stan Hu <stanhu@gmail.com> | 2017-07-28 00:24:35 -0500 |
|---|---|---|
| committer | Stan Hu <stanhu@gmail.com> | 2017-07-28 00:26:57 -0500 |
| commit | 3a200165c3ba43a6f037bcb59c97a13f33624db1 (patch) | |
| tree | e418a4e1b5b0262f9e52fc0480f6df9f045ce08c /lib/gitlab.rb | |
| parent | 02b25598cbedaaec96d8c9e52de7f969a5eb71a1 (diff) | |
| download | gitlab-ce-3a200165c3ba43a6f037bcb59c97a13f33624db1.tar.gz | |
Fix lograge exclusion in params sectionsh-fix-lograge-exception
Without this fix, we would just see redundant entries in the `params` section:
```
{"method":"GET","path":"/-/metrics","format":"html","controller":"MetricsController","action":"index","status":404,"duration":1.42,"view":0.38,"db":0.0,"time":"2017-07-28T02:59:18.167Z","params":{"controller":"metrics","action":"index"}}
```
The intended format looks more like this:
```
{"method":"GET","path":"/-/metrics","format":"html","controller":"MetricsController","action":"index","status":404,"duration":76.32,"view":69.95,"db":0.0,"time":"2017-07-28T02:59:48.893Z","params":{}}
```
The proper form to exclude an array is to preface with an asterisk:
https://apidock.com/rails/Hash/except
Diffstat (limited to 'lib/gitlab.rb')
0 files changed, 0 insertions, 0 deletions
