Added obvious ascii art and a friendly message whenever a local config is present.
This commit is contained in:
Trevor Payne
2020-09-03 23:42:48 -05:00
parent f742f850eb
commit 9abac555c3

View File

@@ -12,8 +12,27 @@ namespace PepperDash.Essentials.Core.Config
/// <summary>
/// Loads the ConfigObject from the file
/// </summary>
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