|
@@ -427,7 +427,7 @@ func NoticeAvailableEgressRegions(regions []string) {
|
|
|
func noticeWithDialParameters(noticeType string, dialParams *DialParameters) {
|
|
func noticeWithDialParameters(noticeType string, dialParams *DialParameters) {
|
|
|
|
|
|
|
|
args := []interface{}{
|
|
args := []interface{}{
|
|
|
- "serverID", dialParams.ServerEntry.GetDiagnosticID(),
|
|
|
|
|
|
|
+ "diagnosticID", dialParams.ServerEntry.GetDiagnosticID(),
|
|
|
"region", dialParams.ServerEntry.Region,
|
|
"region", dialParams.ServerEntry.Region,
|
|
|
"protocol", dialParams.TunnelProtocol,
|
|
"protocol", dialParams.TunnelProtocol,
|
|
|
"isReplay", dialParams.IsReplay,
|
|
"isReplay", dialParams.IsReplay,
|
|
@@ -531,10 +531,10 @@ func NoticeRequestedTactics(dialParams *DialParameters) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// NoticeActiveTunnel is a successful connection that is used as an active tunnel for port forwarding
|
|
// NoticeActiveTunnel is a successful connection that is used as an active tunnel for port forwarding
|
|
|
-func NoticeActiveTunnel(serverID, protocol string, isTCS bool) {
|
|
|
|
|
|
|
+func NoticeActiveTunnel(diagnosticID, protocol string, isTCS bool) {
|
|
|
singletonNoticeLogger.outputNotice(
|
|
singletonNoticeLogger.outputNotice(
|
|
|
"ActiveTunnel", noticeIsDiagnostic,
|
|
"ActiveTunnel", noticeIsDiagnostic,
|
|
|
- "serverID", serverID,
|
|
|
|
|
|
|
+ "diagnosticID", diagnosticID,
|
|
|
"protocol", protocol,
|
|
"protocol", protocol,
|
|
|
"isTCS", isTCS)
|
|
"isTCS", isTCS)
|
|
|
}
|
|
}
|
|
@@ -672,20 +672,20 @@ func NoticeClientUpgradeDownloaded(filename string) {
|
|
|
// notice: the user app has requested this notice with EmitBytesTransferred
|
|
// notice: the user app has requested this notice with EmitBytesTransferred
|
|
|
// for functionality such as traffic display; and this frequent notice is not
|
|
// for functionality such as traffic display; and this frequent notice is not
|
|
|
// intended to be included with feedback.
|
|
// intended to be included with feedback.
|
|
|
-func NoticeBytesTransferred(serverID string, sent, received int64) {
|
|
|
|
|
|
|
+func NoticeBytesTransferred(diagnosticID string, sent, received int64) {
|
|
|
singletonNoticeLogger.outputNotice(
|
|
singletonNoticeLogger.outputNotice(
|
|
|
"BytesTransferred", 0,
|
|
"BytesTransferred", 0,
|
|
|
- "serverID", serverID,
|
|
|
|
|
|
|
+ "diagnosticID", diagnosticID,
|
|
|
"sent", sent,
|
|
"sent", sent,
|
|
|
"received", received)
|
|
"received", received)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// NoticeTotalBytesTransferred reports how many tunneled bytes have been
|
|
// NoticeTotalBytesTransferred reports how many tunneled bytes have been
|
|
|
// transferred in total up to this point. This is a diagnostic notice.
|
|
// transferred in total up to this point. This is a diagnostic notice.
|
|
|
-func NoticeTotalBytesTransferred(serverID string, sent, received int64) {
|
|
|
|
|
|
|
+func NoticeTotalBytesTransferred(diagnosticID string, sent, received int64) {
|
|
|
singletonNoticeLogger.outputNotice(
|
|
singletonNoticeLogger.outputNotice(
|
|
|
"TotalBytesTransferred", noticeIsDiagnostic,
|
|
"TotalBytesTransferred", noticeIsDiagnostic,
|
|
|
- "serverID", serverID,
|
|
|
|
|
|
|
+ "diagnosticID", diagnosticID,
|
|
|
"sent", sent,
|
|
"sent", sent,
|
|
|
"received", received)
|
|
"received", received)
|
|
|
}
|
|
}
|
|
@@ -788,10 +788,10 @@ func NoticeNetworkID(networkID string) {
|
|
|
"NetworkID", 0, "ID", networkID)
|
|
"NetworkID", 0, "ID", networkID)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func NoticeLivenessTest(serverID string, metrics *livenessTestMetrics, success bool) {
|
|
|
|
|
|
|
+func NoticeLivenessTest(diagnosticID string, metrics *livenessTestMetrics, success bool) {
|
|
|
singletonNoticeLogger.outputNotice(
|
|
singletonNoticeLogger.outputNotice(
|
|
|
"LivenessTest", noticeIsDiagnostic,
|
|
"LivenessTest", noticeIsDiagnostic,
|
|
|
- "serverID", serverID,
|
|
|
|
|
|
|
+ "diagnosticID", diagnosticID,
|
|
|
"metrics", metrics,
|
|
"metrics", metrics,
|
|
|
"success", success)
|
|
"success", success)
|
|
|
}
|
|
}
|
|
@@ -810,10 +810,10 @@ func NoticeEstablishTunnelTimeout(timeout time.Duration) {
|
|
|
"timeout", timeout)
|
|
"timeout", timeout)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func NoticeFragmentor(serverID string, message string) {
|
|
|
|
|
|
|
+func NoticeFragmentor(diagnosticID string, message string) {
|
|
|
singletonNoticeLogger.outputNotice(
|
|
singletonNoticeLogger.outputNotice(
|
|
|
"Fragmentor", noticeIsDiagnostic,
|
|
"Fragmentor", noticeIsDiagnostic,
|
|
|
- "serverID", serverID,
|
|
|
|
|
|
|
+ "diagnosticID", diagnosticID,
|
|
|
"message", message)
|
|
"message", message)
|
|
|
}
|
|
}
|
|
|
|
|
|