|
@@ -2107,11 +2107,19 @@ namespace EVCB_OCPP.WSServer
|
|
|
|
|
|
private void WarmUpLog()
|
|
|
{
|
|
|
-
|
|
|
- using (var log = new ConnectionLogDBContext())
|
|
|
+ try
|
|
|
+ {
|
|
|
+ using (var log = new ConnectionLogDBContext())
|
|
|
+ {
|
|
|
+ log.MachineConnectionLog.ToList();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
{
|
|
|
- log.MachineConnectionLog.ToList();
|
|
|
+ Console.WriteLine(ex.ToString());
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
private void WriteMachineLog(ClientData clientData, string data, string messageType, string errorMsg = "", bool isSent = false)
|