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 9f9aa8a9c5
commit 6b12f65efd

View File

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