2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

fhem.pl: optional stacktrace in Debug (Forum #137544)

git-svn-id: https://svn.fhem.de/fhem/trunk@28666 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2024-03-16 12:11:51 +00:00
parent 55a796eea4
commit f800676c3d

View File

@ -5569,6 +5569,7 @@ json2reading($$;$$$$)
sub
Debug($) {
my $msg= shift;
stacktrace() if(AttrNum('global','stacktrace',0) == 1);
Log 1, "DEBUG>" . $msg;
}