From e68f68d792095140b1a848fd449b511a76466e97 Mon Sep 17 00:00:00 2001 From: stam Date: Sun, 17 Jan 2021 13:45:28 +0300 Subject: [PATCH] 1.0.0.7 * sourcetree support --- src/DonloaderService.cs | 13 ++++++++++--- src/Program.cs | 6 +++--- src/appSettings.json | 4 ++-- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/DonloaderService.cs b/src/DonloaderService.cs index e91efdc..7555758 100644 --- a/src/DonloaderService.cs +++ b/src/DonloaderService.cs @@ -32,7 +32,7 @@ namespace EpicMorg.Atlassian.Downloader this.SetConsoleTitle(); var feedUrls = this.GetFeedUrls(); - logger.LogTrace($"Task started"); + logger.LogInformation($"Task started"); foreach (var feedUrl in feedUrls) { if (cancellationToken.IsCancellationRequested) @@ -116,7 +116,14 @@ namespace EpicMorg.Atlassian.Downloader "https://my.atlassian.com/download/feeds/eap/confluence.json", "https://my.atlassian.com/download/feeds/eap/jira.json", "https://my.atlassian.com/download/feeds/eap/jira-servicedesk.json", - "https://my.atlassian.com/download/feeds/eap/stash.json" + "https://my.atlassian.com/download/feeds/eap/stash.json", + + //https://raw.githubusercontent.com/EpicMorg/atlassian-json/master/json-backups/archived/sourcetree.json + "https://raw.githack.com/EpicMorg/atlassian-json/master/json-backups/archived/sourcetree.json", + + //https://raw.githubusercontent.com/EpicMorg/atlassian-json/master/json-backups/current/sourcetree.json + "https://raw.githack.com/EpicMorg/atlassian-json/master/json-backups/current/sourcetree.json" + }; private void SetConsoleTitle() @@ -168,7 +175,7 @@ namespace EpicMorg.Atlassian.Downloader } } } - logger.LogTrace($"All files from \"{feedUrl}\" successfully downloaded."); + logger.LogInformation($"All files from \"{feedUrl}\" successfully downloaded."); } private async Task DownloadFile(ResponseItem file, string outputFile, CancellationToken cancellationToken) diff --git a/src/Program.cs b/src/Program.cs index 9559bd2..399dc31 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -14,10 +14,10 @@ namespace EpicMorg.Atlassian.Downloader { /// /// Atlassian archive downloader. See https://github.com/EpicMorg/atlassian-downloader for more info - /// + /// + /// Action to perform /// Override output directory to download. - /// Override URIs to import. - /// Action to perform + /// Override URIs to import. static async Task Main(string OutputDir = "atlassian", Uri[] customFeed = null, DownloadAction Action = DownloadAction.Download) => await Host .CreateDefaultBuilder() diff --git a/src/appSettings.json b/src/appSettings.json index f7a4941..330d540 100644 --- a/src/appSettings.json +++ b/src/appSettings.json @@ -1,11 +1,11 @@ { "Serilog": { - "MinimumLevel": "Verbose", + "MinimumLevel": "Information", "WriteTo": [ { "Name": "Console", "Args": { - "theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console" + "theme": "Serilog.Sinks.SystemConsole.Themes.SystemConsoleTheme::Literate, Serilog.Sinks.Console" } } ,