doc updates, and relabel ReportMethod
in the Logrus context it's the caller, so use that internally. Label stays as 'method' since in the context of the log event that seems more correct.
This commit is contained in:
+2
-2
@@ -44,8 +44,8 @@ func prefixFieldClashes(data Fields) {
|
||||
data["fields.level"] = l
|
||||
}
|
||||
|
||||
// If ReportMethod is not set, 'method' will not conflict.
|
||||
if ReportMethod() {
|
||||
// If Reportmethod is not set, 'method' will not conflict.
|
||||
if ReportCaller() {
|
||||
if l, ok := data["method"]; ok {
|
||||
data["fields.method"] = l
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user