added warning for when user is running LubeLogger without a preconfigured culture.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-09-29 10:58:23 -06:00
parent a830580c27
commit 8293bed89c

View File

@@ -244,6 +244,10 @@ namespace CarCareTracker.Helper
}
var motd = config["LUBELOGGER_MOTD"] ?? "Not Configured";
Console.WriteLine($"Message Of The Day: {motd}");
if (string.IsNullOrWhiteSpace(CultureInfo.CurrentCulture.Name))
{
Console.WriteLine("No Locale or Culture Configured for LubeLogger, Check Environment Variables");
}
}
public static async void NotifyAsync(string webhookURL, int vehicleId, string username, string action)
{