From 9abac555c3884519b5fd480f8ce013bf3e0ed41e Mon Sep 17 00:00:00 2001 From: Trevor Payne Date: Thu, 3 Sep 2020 23:42:48 -0500 Subject: [PATCH] Resolves #399 Added obvious ascii art and a friendly message whenever a local config is present. --- .../Config/Essentials/ConfigReader.cs | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/essentials-framework/Essentials Core/PepperDashEssentialsBase/Config/Essentials/ConfigReader.cs b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Config/Essentials/ConfigReader.cs index b3fc7d89..8de89ab1 100644 --- a/essentials-framework/Essentials Core/PepperDashEssentialsBase/Config/Essentials/ConfigReader.cs +++ b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Config/Essentials/ConfigReader.cs @@ -12,8 +12,27 @@ namespace PepperDash.Essentials.Core.Config /// /// Loads the ConfigObject from the file /// - public class ConfigReader - { + public class ConfigReader + { + public const string LocalConfigPresent = + @" + _ _ _____ __ _ +| | | | / __ \ / _(_) +| | ___ ___ __ _| | | / \/ ___ _ __ | |_ _ __ _ +| | / _ \ / __/ _` | | | | / _ \| '_ \| _| |/ _` | +| |___| (_) | (_| (_| | | | \__/\ (_) | | | | | | | (_| | +\_____/\___/ \___\__,_|_| \____/\___/|_| |_|_| |_|\__, | + __/ | + |___/ +______ _ _ _ _ +| ___ \ | | | | | | +| |_/ / __ ___ ___ ___ _ __ | |_ | | | | +| __/ '__/ _ \/ __|/ _ \ '_ \| __| | | | | +| | | | | __/\__ \ __/ | | | |_ |_|_|_| +\_| |_| \___||___/\___|_| |_|\__| (_|_|_) + + "; + public static EssentialsConfig ConfigObject { get; private set; } public static bool LoadConfig2() @@ -44,6 +63,8 @@ namespace PepperDash.Essentials.Core.Config { localConfigFound = true; Debug.Console(0, Debug.ErrorLogLevel.Notice, "Found Local config file: '{0}'", filePath); + Debug.Console(0, LocalConfigPresent); + Debug.Console(0, "Local config files are valid, but be sure this is your intention. Spinning your wheels chasing down a configuration issue is not fun!"); } } else