diff --git a/internal/frontend/bridge-gui/bridge-gui/SentryUtils.cpp b/internal/frontend/bridge-gui/bridge-gui/SentryUtils.cpp index b7d80720..685b1ffb 100644 --- a/internal/frontend/bridge-gui/bridge-gui/SentryUtils.cpp +++ b/internal/frontend/bridge-gui/bridge-gui/SentryUtils.cpp @@ -49,7 +49,7 @@ QString sentryAttachmentFilePath() { //**************************************************************************************************************************************************** QByteArray getProtectedHostname() { QByteArray hostname = QCryptographicHash::hash(QSysInfo::machineHostName().toUtf8(), QCryptographicHash::Sha256); - return hostname.toHex(); + return hostname.toBase64(); } //**************************************************************************************************************************************************** diff --git a/internal/frontend/bridge-gui/bridge-gui/SentryUtils.h b/internal/frontend/bridge-gui/bridge-gui/SentryUtils.h index 8d1d966e..7e918235 100644 --- a/internal/frontend/bridge-gui/bridge-gui/SentryUtils.h +++ b/internal/frontend/bridge-gui/bridge-gui/SentryUtils.h @@ -22,6 +22,7 @@ #include void initSentry(); +QByteArray getProtectedHostname(); void setSentryReportScope(); sentry_options_t* newSentryOptions(const char * sentryDNS, const char * cacheDir); sentry_uuid_t reportSentryEvent(sentry_level_t level, const char *message); diff --git a/internal/frontend/bridge-gui/bridge-gui/main.cpp b/internal/frontend/bridge-gui/bridge-gui/main.cpp index b7f3225f..617d8b85 100644 --- a/internal/frontend/bridge-gui/bridge-gui/main.cpp +++ b/internal/frontend/bridge-gui/bridge-gui/main.cpp @@ -305,6 +305,8 @@ int main(int argc, char *argv[]) { // When not in attached mode, log entries are forwarded to bridge, which output it on stdout/stderr. bridge-gui's process monitor intercept // these outputs and output them on the command-line. log.setLevel(cliOptions.logLevel); + log.info(QString("New Sentry reporter - id: %1.").arg(getProtectedHostname())); + QString bridgeexec; if (!cliOptions.attach) { if (isBridgeRunning()) { diff --git a/internal/sentry/reporter.go b/internal/sentry/reporter.go index 2b69b4ad..c15832ec 100644 --- a/internal/sentry/reporter.go +++ b/internal/sentry/reporter.go @@ -96,6 +96,7 @@ func GetTimeZone() string { // NewReporter creates new sentry reporter with appName and appVersion to report. func NewReporter(appName string, identifier Identifier) *Reporter { + logrus.WithField("id", GetProtectedHostname()).Info("New sentry reporter") return &Reporter{ appName: appName, appVersion: constants.Revision,