Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Set logger name #8

Merged
merged 1 commit into from
Dec 29, 2013
Merged

Set logger name #8

merged 1 commit into from
Dec 29, 2013

Conversation

taylortrimble
Copy link
Contributor

logger is a required field (although a default is specified).
http://sentry.readthedocs.org/en/latest/developer/client/index.html#building-the-json-packet

If you want to use a Writer with the log pkg, you can specify the logger name there too.

@titanous
Copy link
Contributor

GitHub is claiming that this doesn't merge cleanly, can you rebase on master?

@taylortrimble
Copy link
Contributor Author

I think I fixed it. Thanks!

Level Severity
Client *Client
Level Severity
LoggerName string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, should we call this Logger to match the field in Packet?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could: I thought it was a little confusing to name it that, but if you'd prefer it match I'd be on board. Maybe I could add a comment.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, add a comment and call it Logger.

@titanous
Copy link
Contributor

The tests also need fixing: https://travis-ci.org/cupcake/raven-go/jobs/16118609

@taylortrimble
Copy link
Contributor Author

The tests also need fixing: https://travis-ci.org/cupcake/raven-go/jobs/16118609

Yeah, I saw that: I think it's fixed now. Field too!

@titanous
Copy link
Contributor

A check should be added to TestPacketInit in client_test.go, and you'll want to set Logger in TestPacketJSON.

@taylortrimble
Copy link
Contributor Author

Okay, I actually looked at the tests this time. 😳 😉

@titanous
Copy link
Contributor

Awesome, squash and I'll merge.

`logger` is a required field (although a default is specified).
<http://sentry.readthedocs.org/en/latest/developer/client/index.html#bui
lding-the-json-packet>

If you want to use a Writer with the log pkg, you can specify the
logger name there too.

Update client-test for required logger field

Change LoggerName to Logger to match Packet field

Sloppy!

Maybe I'm serious about tests this time
@taylortrimble
Copy link
Contributor Author

👢

titanous added a commit that referenced this pull request Dec 29, 2013
@titanous titanous merged commit 9027ab7 into getsentry:master Dec 29, 2013
@titanous
Copy link
Contributor

Thanks!

@taylortrimble taylortrimble deleted the logger-name branch December 29, 2013 23:21
mzuneska pushed a commit to mzuneska/raven-go that referenced this pull request Aug 9, 2016
Add special sentry field support.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants