TP-5555 | optimise symbolicator
This commit is contained in:
BIN
bins/source-map
BIN
bins/source-map
Binary file not shown.
@@ -3,7 +3,6 @@ package symbolicator
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
@@ -38,7 +37,7 @@ func SymbolicatorClient(cmdArg *Command) (SymbolicatedStackTrace, error) {
|
||||
// Execute the command
|
||||
err := cmd.Run()
|
||||
if err != nil {
|
||||
fmt.Printf("Error: %v\n", err)
|
||||
return SymbolicatedStackTrace{}, err
|
||||
}
|
||||
// Get the output
|
||||
output := out.String()
|
||||
|
||||
@@ -172,8 +172,10 @@ func (ep *ErrorProcessor) ProcessError(error []byte) {
|
||||
Cmd: symbolicatorCommand,
|
||||
Args: args,
|
||||
}
|
||||
|
||||
output, err := symbolicator.SymbolicatorClient(command)
|
||||
var output symbolicator.SymbolicatedStackTrace
|
||||
if len(frames) != 0 {
|
||||
output, err = symbolicator.SymbolicatorClient(command)
|
||||
}
|
||||
for _, v := range invalidFrames {
|
||||
output.Frames = append(output.Frames, symbolicator.SymbolicatedFrame{
|
||||
Token: v.Filename,
|
||||
|
||||
Reference in New Issue
Block a user