Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use string instead of reflect.Type as log field #396

Merged
merged 1 commit into from
Dec 7, 2018
Merged

fix: Use string instead of reflect.Type as log field #396

merged 1 commit into from
Dec 7, 2018

Conversation

smacker
Copy link
Contributor

@smacker smacker commented Dec 7, 2018

With JSON formatter reflect.Type is formatted as "{}"

Example from staging logs:

{
    "app":"lookoutd",
    "event-id":"6052c4a4bda3c9807c9ec80c0955f85ee709a359",
    "event-type":{},
    "head":"refs/pull/395/head",
    "level":"info",
    "msg":"processing pull request",
    "provider":"github",
    "repo":"https://github.com/src-d/lookout.git",
    "source":"server/server.go:116",
    "time":"2018-12-07T10:57:47.489675762Z"
}

Signed-off-by: Maxim Sukharev [email protected]

With JSON formatter reflect.Type is formatted as "{}"

Example from staging logs:
{
    "app":"lookoutd",
    "event-id":"6052c4a4bda3c9807c9ec80c0955f85ee709a359",
    "event-type":{},
    "head":"refs/pull/395/head",
    "level":"info",
    "msg":"processing pull request",
    "provider":"github",
    "repo":"https://github.com/src-d/lookout.git",
    "source":"server/server.go:116",
    "time":"2018-12-07T10:57:47.489675762Z"
}

Signed-off-by: Maxim Sukharev <[email protected]>
@smacker smacker merged commit 3ab56f8 into src-d:master Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants