Closed iwpnd closed 2 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
server/handle_map_layer_zxy.go | 6 | 10 | 60.0% | ||
<!-- | Total: | 6 | 10 | 60.0% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
server/handle_map_layer_zxy.go | 1 | 77.5% | ||
<!-- | Total: | 1 | --> |
Totals | |
---|---|
Change from base Build 2fad34008: | -0.02% |
Covered Lines: | 5485 |
Relevant Lines: | 12158 |
@gdey do you think Debug or Info should be used in these log statements. That's the only real question in this PR.
@gdey do you think Debug or Info should be used in these log statements. That's the only real question in this PR.
I think debug is fine. I don't think these are really Info
-level messages, as it might be expected to have these happen, but if you are trying to figure out why it's not happening then opening it up to debug
would be good. The only other level I can think of that might make sense is TRACE
, but that's supposed to be even more verbose than debug
. So, debug
is good.
As discussed I'm removing the
logAndError
helper and let control logging for those three occasions in the error block. If you disagree with me on theDebug
instead of theInfo
log, please feel free to just change it around. :)