Updated the logs query to fetch 500 log lines instead of just 100 for more useful logging information

This commit is contained in:
2023-08-12 13:04:18 -06:00
parent ec9d23ede7
commit 23ad489b15
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -804,7 +804,7 @@ impl<'a, 'b> Network<'a, 'b> {
info!("Fetching Radarr logs");
let resource = format!(
"{}?pageSize=100&sortDirection=descending&sortKey=time",
"{}?pageSize=500&sortDirection=descending&sortKey=time",
RadarrEvent::GetLogs.resource()
);
let request_props = self
+2 -2
View File
@@ -1098,7 +1098,7 @@ mod test {
#[tokio::test]
async fn test_handle_get_logs_event() {
let resource = format!(
"{}?pageSize=100&sortDirection=descending&sortKey=time",
"{}?pageSize=500&sortDirection=descending&sortKey=time",
RadarrEvent::GetLogs.resource()
);
let expected_logs = vec![
@@ -1112,7 +1112,7 @@ mod test {
None,
Some(json!({
"page": 1,
"pageSize": 100,
"pageSize": 500,
"sortKey": "time",
"sortDirection": "descending",
"totalRecords": 2,