Browse Source

Server: Improve logging when the AccessControl plugin denies the credentials

Julius Pfrommer 6 years ago
parent
commit
0b06e658fa
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/server/ua_services_session.c

+ 3 - 1
src/server/ua_services_session.c

@@ -330,7 +330,9 @@ Service_ActivateSession(UA_Server *server, UA_SecureChannel *channel,
                                                      &session->sessionHandle);
     if(response->responseHeader.serviceResult != UA_STATUSCODE_GOOD) {
         UA_LOG_INFO_SESSION(server->config.logger, session,
-                            "ActivateSession: Could not generate a server nonce");
+                            "ActivateSession: The AccessControl plugin "
+                            "denied the access with the status code %s",
+                            UA_StatusCode_name(response->responseHeader.serviceResult));
         return;
     }