|
@@ -471,7 +471,7 @@ internal partial class ProfileHandler
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
|
|
|
- Console.WriteLine(string.Format("{0} :{1}", session.ChargeBoxId + " RunningCost", ex.Message));
|
|
|
+ logger.LogCritical(string.Format("{0} :{1}", session.ChargeBoxId + " RunningCost", ex.Message));
|
|
|
|
|
|
}
|
|
|
|
|
@@ -907,7 +907,7 @@ internal partial class ProfileHandler
|
|
|
break;
|
|
|
default:
|
|
|
{
|
|
|
- Console.WriteLine(string.Format("Not Implement {0} Logic(ExecuteCoreRequest)", request.GetType().ToString().Replace("OCPPPackage.Messages.Core.", "")));
|
|
|
+ logger.LogWarning(string.Format("Not Implement {0} Logic(ExecuteCoreRequest)", request.GetType().ToString().Replace("OCPPPackage.Messages.Core.", "")));
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
@@ -1089,7 +1089,7 @@ internal partial class ProfileHandler
|
|
|
var tx = await db.TransactionRecord.Where(x => x.Id == txEnergy.TxId).FirstOrDefaultAsync();
|
|
|
if (tx == null)
|
|
|
{
|
|
|
- Console.WriteLine("Tx is empty");
|
|
|
+ logger.LogTrace("Tx is empty");
|
|
|
return result;
|
|
|
}
|
|
|
|
|
@@ -1272,7 +1272,7 @@ internal partial class ProfileHandler
|
|
|
//{ "to","jessica_tseng@phihong.com.tw"}
|
|
|
}, null);
|
|
|
|
|
|
- Console.WriteLine(JsonConvert.SerializeObject(mail_response));
|
|
|
+ logger.LogTrace(JsonConvert.SerializeObject(mail_response));
|
|
|
|
|
|
}
|
|
|
#endregion
|
|
@@ -1523,7 +1523,7 @@ internal partial class ProfileHandler
|
|
|
string oldValue = string.Empty;
|
|
|
if (item.key == null)
|
|
|
{
|
|
|
- Console.WriteLine("*********************");
|
|
|
+ logger.LogTrace("*********************");
|
|
|
}
|
|
|
var foundConfig = configure.Find(x => x.ConfigureName == item.key);
|
|
|
|
|
@@ -1532,7 +1532,7 @@ internal partial class ProfileHandler
|
|
|
{
|
|
|
if (foundConfig.ConfigureName == null)
|
|
|
{
|
|
|
- Console.WriteLine("*********************");
|
|
|
+ logger.LogWarning("*********************");
|
|
|
}
|
|
|
|
|
|
if (foundConfig.ConfigureName == "SecurityProfile")
|
|
@@ -1627,7 +1627,7 @@ internal partial class ProfileHandler
|
|
|
break;
|
|
|
default:
|
|
|
{
|
|
|
- Console.WriteLine(string.Format("Not Implement {0} Logic(ExecuteCoreConfirm)", confirm.GetType().ToString().Replace("OCPPPackage.Messages.Core.", "")));
|
|
|
+ logger.LogWarning(string.Format("Not Implement {0} Logic(ExecuteCoreConfirm)", confirm.GetType().ToString().Replace("OCPPPackage.Messages.Core.", "")));
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
@@ -1684,7 +1684,7 @@ internal partial class ProfileHandler
|
|
|
|
|
|
default:
|
|
|
{
|
|
|
- Console.WriteLine(string.Format("Not Implement {0} Logic(ReceivedCoreError)", action));
|
|
|
+ logger.LogWarning(string.Format("Not Implement {0} Logic(ReceivedCoreError)", action));
|
|
|
}
|
|
|
break;
|
|
|
}
|