Merge pull request #11272 from lafirest/fix/log_typo

fix(log): fix the `pubrel` typo in the log
This commit is contained in:
lafirest 2023-07-14 17:44:36 +08:00 committed by GitHub
commit ae4c5aa4c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -461,7 +461,7 @@ handle_in(
NChannel = set_session(NSession, Channel),
handle_out(pubcomp, {PacketId, ?RC_SUCCESS}, NChannel);
{error, RC = ?RC_PACKET_IDENTIFIER_NOT_FOUND} ->
?SLOG(warning, #{msg => "pubrec_packetId_not_found", packetId => PacketId}),
?SLOG(warning, #{msg => "pubrel_packetId_not_found", packetId => PacketId}),
ok = emqx_metrics:inc('packets.pubrel.missed'),
handle_out(pubcomp, {PacketId, RC}, Channel)
end;

View File

@ -0,0 +1 @@
Fix a typo in the log, when EMQX received an abnormal `PUBREL` packet, the `pubrel` was mistakenly typo as `pubrec`.