|
@@ -157,7 +157,7 @@ public class OcppWebsocketService : WebsocketService<WsClientData>
|
|
|
|
|
|
if (!isExistedSN)
|
|
|
{
|
|
|
- logger.LogTrace("{id} {func} not found", context.TraceIdentifier, nameof(ValidateHandshake));
|
|
|
+ logger.LogInformation("{id} {func} not found", context.TraceIdentifier, nameof(ValidateHandshake));
|
|
|
context.Response.StatusCode = StatusCodes.Status404NotFound;
|
|
|
return false;
|
|
|
}
|
|
@@ -190,7 +190,7 @@ public class OcppWebsocketService : WebsocketService<WsClientData>
|
|
|
|
|
|
if (securityProfile == 3 && session.UriScheme == "ws")
|
|
|
{
|
|
|
- logger.LogTrace("{id} {func} {securityProfile} auth failed", context.TraceIdentifier, nameof(ValidateHandshake), securityProfile);
|
|
|
+ logger.LogInformation("{id} {func} {securityProfile} auth failed", context.TraceIdentifier, nameof(ValidateHandshake), securityProfile);
|
|
|
context.Response.StatusCode = StatusCodes.Status401Unauthorized;
|
|
|
return false;
|
|
|
}
|
|
@@ -199,7 +199,7 @@ public class OcppWebsocketService : WebsocketService<WsClientData>
|
|
|
{
|
|
|
if (securityProfile == 2 && session.UriScheme == "ws")
|
|
|
{
|
|
|
- logger.LogTrace("{id} {func} {securityProfile} auth failed", context.TraceIdentifier, nameof(ValidateHandshake), securityProfile);
|
|
|
+ logger.LogInformation("{id} {func} {securityProfile} auth failed", context.TraceIdentifier, nameof(ValidateHandshake), securityProfile);
|
|
|
context.Response.StatusCode = StatusCodes.Status401Unauthorized;
|
|
|
return false;
|
|
|
}
|
|
@@ -207,7 +207,7 @@ public class OcppWebsocketService : WebsocketService<WsClientData>
|
|
|
//if (session.Items.ContainsKey("Authorization") || session.Items.ContainsKey("authorization"))
|
|
|
if (string.IsNullOrEmpty(authHeader))
|
|
|
{
|
|
|
- logger.LogTrace("{id} {func} {securityProfile} auth failed", context.TraceIdentifier, nameof(ValidateHandshake), securityProfile);
|
|
|
+ logger.LogInformation("{id} {func} {securityProfile} auth failed", context.TraceIdentifier, nameof(ValidateHandshake), securityProfile);
|
|
|
context.Response.StatusCode = StatusCodes.Status401Unauthorized;
|
|
|
return false;
|
|
|
}
|
|
@@ -240,7 +240,7 @@ public class OcppWebsocketService : WebsocketService<WsClientData>
|
|
|
|
|
|
if (!authorizated)
|
|
|
{
|
|
|
- logger.LogTrace("{id} {func} {securityProfile} auth failed", context.TraceIdentifier, nameof(ValidateHandshake), securityProfile);
|
|
|
+ logger.LogInformation("{id} {func} {securityProfile} auth failed", context.TraceIdentifier, nameof(ValidateHandshake), securityProfile);
|
|
|
context.Response.StatusCode = StatusCodes.Status401Unauthorized;
|
|
|
return false;
|
|
|
}
|