audit_logging: Remove duplciate error printing
authorAndrew Bartlett <abartlet@samba.org>
Mon, 25 Jun 2018 02:52:59 +0000 (14:52 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 26 Jun 2018 01:27:20 +0000 (03:27 +0200)
These errors are already logged at DBG_NOTICE in get_event_server()

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/audit_logging/audit_logging.c

index dda350cd14406b8a5b90915c3738a562284547a1..f94f2c2a839b37ffbf572466db837f95771cbd9a 100644 (file)
@@ -249,9 +249,6 @@ void audit_message_send(
         */
        status = get_event_server(msg_ctx, server_name, &event_server);
        if (!NT_STATUS_IS_OK(status)) {
-               DBG_ERR("get_event_server for %s returned (%s)\n",
-                       server_name,
-                       nt_errstr(status));
                TALLOC_FREE(ctx);
                return;
        }
@@ -270,9 +267,6 @@ void audit_message_send(
        if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
                status = get_event_server(msg_ctx, server_name, &event_server);
                if (!NT_STATUS_IS_OK(status)) {
-                       DBG_ERR("get_event_server for %s returned (%s)\n",
-                               server_name,
-                               nt_errstr(status));
                        TALLOC_FREE(ctx);
                        return;
                }