-
temporalfox joined the channel
-
mytrile joined the channel
-
lburgazzoli joined the channel
-
ams__ joined the channel
-
lburgazzoli joined the channel
-
Tica2 joined the channel
-
lungaro
anyone know off hand how to log requests and responses for grpc connections?
-
|Pixel|
which language ?
-
lungaro
go
-
the logging seems to be in a state of flux
-
there is two different versions
-
kind of silly to get logging so wrong out the gates
-
|Pixel|
that would be a question for ejona maybe then
-
lungaro
rgr
-
ejona
I don't think the go logging goes down to that log level. I don't know how to "log everything" in Go, but that doesn't mean its not possible.
-
dfawley joined the channel
-
dfawley
@lungaro did you try enabling tracing to see requests/responses?
-
ejona
lungaro: ^^
-
lungaro
where? on the client?
-
there is a global, grpc.EnableTracing which is not ideal
-
dfawley
in the client or server
-
ideal for what?
-
lungaro
-
I just want logs
-
dfawley
you can also install a stats handler
-
lungaro
global state is bad, What if I dont want to trace everything?
-
dfawley
-
and log there
-
lungaro
hmmm
-
that even logs "method not found" errors?
-
doubtful
-
dfawley
is this just for debugging or do you want to have this in production?
-
lungaro
i just need to see the calls being made for debugging
-
(not prod)
-
dfawley
so outgoing from the client?
-
lungaro
both sides really
-
but client is first step
-
weird why I can't get a log on the server when methods are not found too though
-
assumption seems to be we live in a perfect world
-
dfawley
the tracing will log something for all outgoing call attempts
-
lungaro
Cool
-
i'll dig into it
-
dfawley
i think the problem is that some of this code is still pretty immature
-
lungaro
I can't enable it per endpiont ?
-
rgr
-
dfawley
no, unfortunately
-
lungaro
global debug is better than nothing I Guess
-
thanks
-
zzarr has quit
-
dfawley has quit
-
temporalfox has quit