feat #19: integrate sentry for event reporting

This commit is contained in:
debugtalk
2021-11-18 18:14:02 +08:00
parent 4d4ecb1439
commit 05249967f9
8 changed files with 165 additions and 1 deletions
+2
View File
@@ -1,6 +1,7 @@
package cmd
import (
"github.com/getsentry/sentry-go"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
@@ -14,6 +15,7 @@ var har2caseCmd = &cobra.Command{
Long: `Convert HAR to json/yaml testcase files`,
Args: cobra.MinimumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
sentry.CaptureMessage("start to convert HAR to testcases")
var outputFiles []string
for _, arg := range args {
var outputPath string