-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
miscellaneous fixes #363
miscellaneous fixes #363
Conversation
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
The splitter is simplified using io.ReadFull, as this function does exactly what we wanted. I believe io.ErrUnexpectedEOF should be handled as an EOF here, but please correct me if I'm wrong.
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com> # TYPES # feat # fix # docs # style (formatting, missing semi colons, etc; no code change): # refactor # test (adding missing tests, refactoring tests; no production code change) # chore (updating grunt tasks etc; no production code change)
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com> fix(eventlog) compilation error License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
+ netmessage is now loggable License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
@jbenet @whyrusleeping LGTU? |
yeah LGTM |
) | ||
|
||
const IpnsValidatorTag = "ipns" | ||
|
||
var log = u.Logger("core") | ||
var log = eventlog.Logger("core") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we get to completely removing these .Logger(...)
lines (i.e. import eventlog
as log
and use it directly?)? can eventlog
grab the package name? (or even the filepath?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what the best path is, but this var log = pkg.Logger(..)
thing isn't adding much
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eventlog
cannot grab the package name.
but this var log = pkg.Logger(..) thing isn't adding much
the package name... it adds precisely that. I haven't yet found a simple way to achieve this by other means.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could write some SUPER ugly reflection code that grabs the call stack, analyses the caller function and queries which package its in... Other than that we are stuck with this approach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're referring to runtme.FuncForPC
, it's not possible to get the package name.
👍 LGTM. RTM |
This is a shared branch containing improvements too small for individual PRs.
Feel free to push to it. It'll be merged before the end of the week.