From 588f046d99ce809a8e8e3f22a170ae46e63da5c5 Mon Sep 17 00:00:00 2001 From: Nathaniel Nation Date: Wed, 20 Feb 2019 23:21:37 -0500 Subject: [PATCH 1/4] Update _Development/README.md Include the need for appsettings.json in the monitor folder --- _Development/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_Development/README.md b/_Development/README.md index c284956..62c98af 100644 --- a/_Development/README.md +++ b/_Development/README.md @@ -11,4 +11,6 @@ However, you should be carefull to not mess up your files when you commit using ## Setup PT Magic for development 1. Copy settings.analyzer.json and settings.general.json from /_Development/DevSettings to /PTMagic 2. Setup a Profit Trailer instance for development (for example in _Development/LocalProfitTrailer) -3. Adjust the necessary values in settings.general.json to your needs \ No newline at end of file +3. Adjust the necessary values in settings.general.json to your needs +4. Copy appsettings.json from /_Development/DevSettings/Monitor to /PTMagic/Monitor +5. In the appsettings.json file, set the value for PTMagicBasePath development /PTMagic path \ No newline at end of file From 05aaec9a0214cdca9a7718ddbe981c45edd44aed Mon Sep 17 00:00:00 2001 From: Nathaniel Nation Date: Wed, 20 Feb 2019 23:30:38 -0500 Subject: [PATCH 2/4] Revert "Update _Development/README.md" This reverts commit 588f046d99ce809a8e8e3f22a170ae46e63da5c5. --- _Development/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_Development/README.md b/_Development/README.md index 62c98af..c284956 100644 --- a/_Development/README.md +++ b/_Development/README.md @@ -11,6 +11,4 @@ However, you should be carefull to not mess up your files when you commit using ## Setup PT Magic for development 1. Copy settings.analyzer.json and settings.general.json from /_Development/DevSettings to /PTMagic 2. Setup a Profit Trailer instance for development (for example in _Development/LocalProfitTrailer) -3. Adjust the necessary values in settings.general.json to your needs -4. Copy appsettings.json from /_Development/DevSettings/Monitor to /PTMagic/Monitor -5. In the appsettings.json file, set the value for PTMagicBasePath development /PTMagic path \ No newline at end of file +3. Adjust the necessary values in settings.general.json to your needs \ No newline at end of file From 21e15813c07ba50a55fc42ae8c28642009f346c0 Mon Sep 17 00:00:00 2001 From: Nathaniel Nation Date: Wed, 20 Feb 2019 23:43:35 -0500 Subject: [PATCH 3/4] Update _Development/README.md Include the need for appsettings.json in the monitor folder --- _Development/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_Development/README.md b/_Development/README.md index c284956..f404a6a 100644 --- a/_Development/README.md +++ b/_Development/README.md @@ -11,4 +11,6 @@ However, you should be carefull to not mess up your files when you commit using ## Setup PT Magic for development 1. Copy settings.analyzer.json and settings.general.json from /_Development/DevSettings to /PTMagic 2. Setup a Profit Trailer instance for development (for example in _Development/LocalProfitTrailer) -3. Adjust the necessary values in settings.general.json to your needs \ No newline at end of file +3. Adjust the necessary values in settings.general.json to your needs +4. Copy appsettings.json from /_Development/DevSettings/Monitor to /PTMagic/Monitor +5. In the appsettings.json file, set the value for PTMagicBasePath development /PTMagic path \ No newline at end of file From a8ca0a8701c4be4939c9623deca11b5341aca5b6 Mon Sep 17 00:00:00 2001 From: Nathaniel Nation Date: Wed, 20 Feb 2019 23:52:07 -0500 Subject: [PATCH 4/4] Remove unused variable Remove ex as it was not used. --- Core/Main/PTMagic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Main/PTMagic.cs b/Core/Main/PTMagic.cs index 19b4137..c84e2e3 100644 --- a/Core/Main/PTMagic.cs +++ b/Core/Main/PTMagic.cs @@ -705,7 +705,7 @@ namespace Core.Main this.Log.DoLogInfo("No FreeCurrencyConverterApi KEY specified, you can only use USD; apply for a key at: https://freecurrencyrates.com/en"); } } - catch (System.NullReferenceException ex) + catch (System.NullReferenceException) { this.Log.DoLogError("PTM failed to read the Config File. That means something in the File is either missing or incorrect. If this happend after an update please take a look at the release notes at: https://github.com/PTMagicians/PTMagic/releases"); }