mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2026-11-30 16:38:13 +00:00
Refactor trace_handler.go to improve variable naming for clarity
This commit is contained in:
1 parent
0f09cddde0
commit
81373fb3a4
1 file changed
+3
-3
@@ -278,9 +278,9 @@ func traceHandler(c *gin.Context) {
|
||||
traceMapURL := ""
|
||||
if configured.Maptrace && shouldGenerateMap(setup.DataProvider) {
|
||||
if payload, err := json.Marshal(res); err == nil {
|
||||
if url, err := tracemap.GetMapUrl(string(payload)); err == nil {
|
||||
traceMapURL = url
|
||||
log.Printf("[deploy] trace map generated target=%s url=%s", setup.Target, traceMapURL)
|
||||
if mapUrl, err := tracemap.GetMapUrl(string(payload)); err == nil {
|
||||
traceMapURL = mapUrl
|
||||
log.Printf("[deploy] trace map generated target=%s mapUrl=%s", setup.Target, traceMapURL)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user