Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Aug 26, 2024
1 parent d0b869b commit cf5039d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion HackMdApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using OpenQA.Selenium.Remote;
using OpenQA.Selenium.Support.UI;
using OtpNet;
using ZstdSharp.Unsafe;

namespace HackMdBackup;

Expand Down Expand Up @@ -202,7 +203,7 @@ public async Task GetAllNotes()
}
catch (Exception ex)
{
Console.WriteLine($"Error during list fetch: {ex.Message} == {responseBody}");
Console.WriteLine($"Error during list fetch: {ex.Message} == {response.StatusCode}|{response.ReasonPhrase} [{responseBody}]");
}

if (notes is { result.Count: 0 })
Expand All @@ -217,6 +218,11 @@ public async Task GetAllNotes()
Console.WriteLine($"Page {page}: Got {notes.result.Count} - Total {allNotes.Count}");
page++;
}
else
{
Console.WriteLine("Skipping next page.");
page++;
}
}

Console.WriteLine("Start reading notes...");
Expand Down

0 comments on commit cf5039d

Please sign in to comment.