implements error log reporting (#464)

* implements error log reporting

* changes api post variables, includes warnings
This commit is contained in:
Keagan McClelland
2021-09-13 11:49:12 -06:00
committed by Aiden McClelland
parent 561e09016d
commit 6cb706785d
10 changed files with 175 additions and 15 deletions

View File

@@ -44,7 +44,7 @@ async fn ws_handler<
.websocket_count
.fetch_sub(1, std::sync::atomic::Ordering::SeqCst);
if new_count == 0 {
ctx.session_id
ctx.log_epoch
.store(rand::random(), std::sync::atomic::Ordering::SeqCst)
}
()

View File

@@ -55,6 +55,7 @@ impl Database {
tor: Vec::new(),
clearnet: Vec::new(),
},
share_stats: false,
},
package_data: AllPackageData::default(),
broken_packages: Vec::new(),
@@ -82,6 +83,7 @@ pub struct ServerInfo {
unread_notification_count: u64,
specs: ServerSpecs,
connection_addresses: ConnectionAddresses,
share_stats: bool,
}
#[derive(Debug, Deserialize, Serialize)]