mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-08-13 08:22:26 +01:00
Fix debug log in initial unlinked state
Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
co-authored by
ayumi-signal
parent
42c52684fb
commit
207ca4fc0f
@@ -249,9 +249,19 @@ ipc.on('additional-log-data-request', async event => {
|
||||
statistics = {};
|
||||
}
|
||||
|
||||
let networkStatistics: NetworkStatistics = {
|
||||
signalConnectionCount: formatCountForLogging(getSignalConnections().length),
|
||||
};
|
||||
let networkStatistics: NetworkStatistics;
|
||||
try {
|
||||
networkStatistics = {
|
||||
signalConnectionCount: formatCountForLogging(
|
||||
getSignalConnections().length
|
||||
),
|
||||
};
|
||||
} catch (error) {
|
||||
networkStatistics = {
|
||||
signalConnectionCount: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
const unauthorizedStats = AggregatedStats.loadOrCreateEmpty(
|
||||
UNAUTHENTICATED_CHANNEL_NAME
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user