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:
parent
55a796eea4
commit
f800676c3d
@ -5569,6 +5569,7 @@ json2reading($$;$$$$)
|
||||
sub
|
||||
Debug($) {
|
||||
my $msg= shift;
|
||||
stacktrace() if(AttrNum('global','stacktrace',0) == 1);
|
||||
Log 1, "DEBUG>" . $msg;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user