mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-16 10:58:31 -05:00
More modernization
- Split generic "common" libraries into specific libraries - Use other packages in lieu of custom code - General cleanup
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Common.Debug;
|
||||
using Serilog;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Xml;
|
||||
@@ -55,7 +55,7 @@ namespace FeedCenter.FeedParsers
|
||||
// Check to see if we already have this feed item
|
||||
if (existingFeedItem == null)
|
||||
{
|
||||
Tracer.WriteLine("New link: " + newFeedItem.Link);
|
||||
Log.Logger.Information("New link: " + newFeedItem.Link);
|
||||
|
||||
// Associate the new item with the right feed
|
||||
newFeedItem.Feed = Feed;
|
||||
@@ -71,7 +71,7 @@ namespace FeedCenter.FeedParsers
|
||||
}
|
||||
else
|
||||
{
|
||||
Tracer.WriteLine("Existing link: " + newFeedItem.Link);
|
||||
Log.Logger.Information("Existing link: " + newFeedItem.Link);
|
||||
|
||||
// Update the fields in the existing item
|
||||
existingFeedItem.Link = newFeedItem.Link;
|
||||
@@ -150,8 +150,8 @@ namespace FeedCenter.FeedParsers
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
Tracer.WriteException(exception);
|
||||
|
||||
Log.Logger.Error(exception, "Exception: {0}", feedText);
|
||||
|
||||
return FeedType.Unknown;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user