Comments (2)
Yep, I was coming here to file the same issue. Zapr changes the call stack, but doesn't use the AddCallerSkip option to adjust the frames to the caller.
Example: https://play.golang.org/p/VdTPtGsGXSC
from zapr.
This does fix it for the exact bug reportet, but does break again when using WithName or WithValues since those are not supposed to add an additional skip .
from zapr.
Related Issues (20)
- Tag a new release HOT 1
- Wrong line reported
- WithName and WithValues should preserve log level HOT 1
- "stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error HOT 3
- How to configured this to log to stdout, not stderr like bizarre Golang standard HOT 1
- Re-pin to a newer zap version
- Bump github.com/go-logr/logr v1.0.0-rc1 => v1.0.0 ?
- Incorrect number of arguments detected HOT 2
- Allow mapping between logr V() and zap log levels HOT 7
- panic messages use keys with spaces HOT 14
- DisableCaller in Zap Config HOT 1
- Why doesn't support semver spec to latest tag? HOT 4
- inconsistent logging of value vs. value embedded somewhere else HOT 2
- warn about malformed parameters HOT 1
- Logr to Zap Level Confusion HOT 3
- Data race in WithName() implementation? HOT 6
- use zap.Inline instead of allocating []zap.Field HOT 1
- We are unable to detect the CVE-2020-29652 vulnerability through our vulnerability scanning HOT 1
- Build issues on Go 1.21 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zapr.