forked from Silverfish/proton-bridge
fix(GODT-2669): Display sentry ID in bridge init log.
This commit is contained in:
@ -325,6 +325,7 @@ func withLogging(c *cli.Context, crashHandler *crash.Handler, locations *locatio
|
|||||||
WithField("build", constants.BuildTime).
|
WithField("build", constants.BuildTime).
|
||||||
WithField("runtime", runtime.GOOS).
|
WithField("runtime", runtime.GOOS).
|
||||||
WithField("args", os.Args).
|
WithField("args", os.Args).
|
||||||
|
WithField("SentryID", sentry.GetProtectedHostname()).
|
||||||
Info("Run app")
|
Info("Run app")
|
||||||
|
|
||||||
return fn()
|
return fn()
|
||||||
|
|||||||
@ -96,7 +96,6 @@ func GetTimeZone() string {
|
|||||||
|
|
||||||
// NewReporter creates new sentry reporter with appName and appVersion to report.
|
// NewReporter creates new sentry reporter with appName and appVersion to report.
|
||||||
func NewReporter(appName string, identifier Identifier) *Reporter {
|
func NewReporter(appName string, identifier Identifier) *Reporter {
|
||||||
logrus.WithField("id", GetProtectedHostname()).Info("New sentry reporter")
|
|
||||||
return &Reporter{
|
return &Reporter{
|
||||||
appName: appName,
|
appName: appName,
|
||||||
appVersion: constants.Revision,
|
appVersion: constants.Revision,
|
||||||
|
|||||||
Reference in New Issue
Block a user