Merge pull request #6954 from donaldsharp/packet_detail

zebra: Limit packet dumps for received data to `detail` level
This commit is contained in:
Rafael Zalamena 2020-08-20 10:16:59 +00:00 committed by GitHub
commit b9fb1c87c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3152,7 +3152,8 @@ void zserv_handle_commands(struct zserv *client, struct stream_fifo *fifo)
zapi_parse_header(msg, &hdr);
if (IS_ZEBRA_DEBUG_PACKET && IS_ZEBRA_DEBUG_RECV)
if (IS_ZEBRA_DEBUG_PACKET && IS_ZEBRA_DEBUG_RECV
&& IS_ZEBRA_DEBUG_DETAIL)
zserv_log_message(NULL, msg, &hdr);
#if defined(HANDLE_ZAPI_FUZZING)