chore: format remaining blog/post log output as <blog>.tumblr.com/post/<id>
Apply the URL format to the remaining 6 console log lines that still referenced posts in <blog>/<id> form (404 logs, max-page-limit log, DumpReplies console output). Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
@@ -373,7 +373,7 @@ namespace URLNotesGrabberCORE
|
|||||||
{
|
{
|
||||||
foreach (var post in posts)
|
foreach (var post in posts)
|
||||||
{
|
{
|
||||||
Console.WriteLine(@"https://tumblr.com/{0}/{1}", post.Item1, post.Item2);
|
Console.WriteLine(@"https://{0}.tumblr.com/post/{1}", post.Item1, post.Item2);
|
||||||
sw.WriteLine(@"https://tumblr.com/{0}/{1}", post.Item1, post.Item2);
|
sw.WriteLine(@"https://tumblr.com/{0}/{1}", post.Item1, post.Item2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -941,7 +941,7 @@ namespace URLNotesGrabberCORE
|
|||||||
|
|
||||||
if (IsNotFound(response))
|
if (IsNotFound(response))
|
||||||
{
|
{
|
||||||
Console.WriteLine($"API returned 404 Not Found for {post.Item1}/{post.Item2}");
|
Console.WriteLine($"API returned 404 Not Found for {post.Item1}.tumblr.com/post/{post.Item2}");
|
||||||
DataAccess.UpdatePostMarkNotFound(post.Item1, post.Item2);
|
DataAccess.UpdatePostMarkNotFound(post.Item1, post.Item2);
|
||||||
Thread.Sleep(1000);
|
Thread.Sleep(1000);
|
||||||
return "NotFound";
|
return "NotFound";
|
||||||
@@ -982,7 +982,7 @@ namespace URLNotesGrabberCORE
|
|||||||
{
|
{
|
||||||
if (IsNotFound(response))
|
if (IsNotFound(response))
|
||||||
{
|
{
|
||||||
Console.WriteLine($"API returned 404 Not Found for {post.Item1}/{post.Item2} (empty response payload)");
|
Console.WriteLine($"API returned 404 Not Found for {post.Item1}.tumblr.com/post/{post.Item2} (empty response payload)");
|
||||||
DataAccess.UpdatePostMarkNotFound(post.Item1, post.Item2);
|
DataAccess.UpdatePostMarkNotFound(post.Item1, post.Item2);
|
||||||
return "NotFound";
|
return "NotFound";
|
||||||
}
|
}
|
||||||
@@ -993,7 +993,7 @@ namespace URLNotesGrabberCORE
|
|||||||
{
|
{
|
||||||
if (IsNotFound(response))
|
if (IsNotFound(response))
|
||||||
{
|
{
|
||||||
Console.WriteLine($"API returned 404 Not Found for {post.Item1}/{post.Item2} (notes payload missing)");
|
Console.WriteLine($"API returned 404 Not Found for {post.Item1}.tumblr.com/post/{post.Item2} (notes payload missing)");
|
||||||
DataAccess.UpdatePostMarkNotFound(post.Item1, post.Item2);
|
DataAccess.UpdatePostMarkNotFound(post.Item1, post.Item2);
|
||||||
return "NotFound";
|
return "NotFound";
|
||||||
}
|
}
|
||||||
@@ -1016,7 +1016,7 @@ namespace URLNotesGrabberCORE
|
|||||||
page++;
|
page++;
|
||||||
if (page > maxPages)
|
if (page > maxPages)
|
||||||
{
|
{
|
||||||
Console.WriteLine($"[GrabNotes] ERROR: Max page limit ({maxPages}) reached for {post.Item1}/{post.Item2}. Aborting further pagination.");
|
Console.WriteLine($"[GrabNotes] ERROR: Max page limit ({maxPages}) reached for {post.Item1}.tumblr.com/post/{post.Item2}. Aborting further pagination.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1033,7 +1033,7 @@ namespace URLNotesGrabberCORE
|
|||||||
|
|
||||||
if (IsNotFound(response))
|
if (IsNotFound(response))
|
||||||
{
|
{
|
||||||
Console.WriteLine($"API returned 404 Not Found during pagination for {post.Item1}/{post.Item2}");
|
Console.WriteLine($"API returned 404 Not Found during pagination for {post.Item1}.tumblr.com/post/{post.Item2}");
|
||||||
DataAccess.UpdatePostMarkNotFound(post.Item1, post.Item2);
|
DataAccess.UpdatePostMarkNotFound(post.Item1, post.Item2);
|
||||||
return "NotFound";
|
return "NotFound";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user