mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 02:10:32 +00:00
fhem.pl: stacktrace attribute (Forum #27662)
git-svn-id: https://svn.fhem.de/fhem/trunk@6723 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
85dbe75c47
commit
e8f383d092
@ -248,7 +248,7 @@ $modules{Global}{AttrList} =
|
|||||||
"backupcmd backupdir backupsymlink backup_before_update " .
|
"backupcmd backupdir backupsymlink backup_before_update " .
|
||||||
"exclude_from_update motd restoreDirs uniqueID ".
|
"exclude_from_update motd restoreDirs uniqueID ".
|
||||||
"sendStatistics:onUpdate,manually,never updateInBackground:1,0 ".
|
"sendStatistics:onUpdate,manually,never updateInBackground:1,0 ".
|
||||||
"showInternalValues:1,0 ";
|
"showInternalValues:1,0 stacktrace:1,0 ";
|
||||||
$modules{Global}{AttrFn} = "GlobalAttr";
|
$modules{Global}{AttrFn} = "GlobalAttr";
|
||||||
|
|
||||||
use vars qw($readingFnAttributes);
|
use vars qw($readingFnAttributes);
|
||||||
@ -2601,7 +2601,9 @@ SignalHandling()
|
|||||||
chomp($msg);
|
chomp($msg);
|
||||||
Log 1, "PERL WARNING: $msg";
|
Log 1, "PERL WARNING: $msg";
|
||||||
Log 3, "eval: $cmdFromAnalyze" if($cmdFromAnalyze && $msg =~ m/\(eval /);
|
Log 3, "eval: $cmdFromAnalyze" if($cmdFromAnalyze && $msg =~ m/\(eval /);
|
||||||
stacktrace() if($attr{global}{verbose} >= 3 && $msg !~ m/ redefined at /);
|
stacktrace() if($attr{global}{stacktrace} &&
|
||||||
|
$attr{global}{verbose} >= 3 &&
|
||||||
|
$msg !~ m/ redefined at /);
|
||||||
$inWarnSub = 0;
|
$inWarnSub = 0;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user