mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
96_allowed.pm: fix the stacktrace output (Forum #124040)
git-svn-id: https://svn.fhem.de/fhem/trunk@25210 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b76c2c1395
commit
9284b0993d
@ -109,7 +109,7 @@ allowed_Authorize($$$$;$)
|
|||||||
# Return 0: allow stacking with other instances, see Forum#46380
|
# Return 0: allow stacking with other instances, see Forum#46380
|
||||||
return 0 if($me->{".allowedCommands"} =~ m/\b\Q$arg\E\b/);
|
return 0 if($me->{".allowedCommands"} =~ m/\b\Q$arg\E\b/);
|
||||||
Log3 $me, 3, "Forbidden command $arg for $cl->{NAME}";
|
Log3 $me, 3, "Forbidden command $arg for $cl->{NAME}";
|
||||||
stacktrace() if(AttrVal($me, "verbose", 5));
|
stacktrace() if(AttrVal($me->{NAME}, "verbose", 0) == 5);
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,7 +122,7 @@ allowed_Authorize($$$$;$)
|
|||||||
$arg =~ m/^$me->{".allowedDevicesRegexp"}$/);
|
$arg =~ m/^$me->{".allowedDevicesRegexp"}$/);
|
||||||
if(!$silent) {
|
if(!$silent) {
|
||||||
Log3 $me, 3, "Forbidden device $arg for $cl->{NAME}";
|
Log3 $me, 3, "Forbidden device $arg for $cl->{NAME}";
|
||||||
stacktrace() if(AttrVal($me, "verbose", 5));
|
stacktrace() if(AttrVal($me->{NAME}, "verbose", 0) == 5);
|
||||||
}
|
}
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user