ultravisor-beacon 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -839,6 +839,19 @@ class UltravisorBeaconClient
|
|
|
839
839
|
// and the reachability auto-detect can't find it as a peer.
|
|
840
840
|
tmpWSRegPayload.HostID = this._Config.HostID || libOS.hostname();
|
|
841
841
|
tmpWSRegPayload.SharedMounts = this._normalizeSharedMounts(this._Config.SharedMounts);
|
|
842
|
+
|
|
843
|
+
// Diagnostic: log the shared-fs fields being sent at LogNoisiness>=2.
|
|
844
|
+
// If the coordinator later reports the beacon as having no HostID,
|
|
845
|
+
// this log line is the definitive proof of what the client actually
|
|
846
|
+
// transmitted. Without this, we can't tell whether a missing HostID
|
|
847
|
+
// is a client-side bug (not sending) or a server-side bug (dropping).
|
|
848
|
+
let tmpNoisy = (this._Config && this._Config.Log && this._Config.Log.LogNoisiness) ||
|
|
849
|
+
(this.log && this.log.LogNoisiness) || 0;
|
|
850
|
+
if (tmpNoisy >= 2)
|
|
851
|
+
{
|
|
852
|
+
this.log.info(`[Beacon] WS register payload HostID=${tmpWSRegPayload.HostID || '(none)'} SharedMounts=${JSON.stringify(tmpWSRegPayload.SharedMounts || [])}`);
|
|
853
|
+
}
|
|
854
|
+
|
|
842
855
|
this._wsSend(tmpWSRegPayload);
|
|
843
856
|
});
|
|
844
857
|
|