mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 03:44:52 +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:
parent
1f670879d6
commit
5395ba18f2
@ -5569,6 +5569,7 @@ json2reading($$;$$$$)
|
|||||||
sub
|
sub
|
||||||
Debug($) {
|
Debug($) {
|
||||||
my $msg= shift;
|
my $msg= shift;
|
||||||
|
stacktrace() if(AttrNum('global','stacktrace',0) == 1);
|
||||||
Log 1, "DEBUG>" . $msg;
|
Log 1, "DEBUG>" . $msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user