00_MQTT2_SERVER.pm:fix debugging message (Forum #90145)

git-svn-id: https://svn.fhem.de/fhem/trunk@18529 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2019-02-08 11:41:47 +00:00
parent 302dba3878
commit f913fb0bca

View File

@@ -261,7 +261,7 @@ MQTT2_SERVER_Read($@)
# Lowlevel debugging
if(AttrVal($sname, "verbose", 1) >= 5) {
my $msg = substr($hash->{BUF}, 0, $tlen);
my $msg = substr($hash->{BUF}, 0, $off+$tlen);
$msg =~ s/([^ -~])/"(".ord($1).")"/ge;
Log3 $sname, 5, "$cpt: $msg";
}