mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
93_DbLog: attr global logdir is considered by set exportCache
git-svn-id: https://svn.fhem.de/fhem/trunk@20093 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e19aef421e
commit
9d8f9cdeb5
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- feature: 93_DbLog: attr global logdir is considered by set exportCache
|
||||||
- change: 76_SMAInverter: STP10.0-3AV-40 298 type included
|
- change: 76_SMAInverter: STP10.0-3AV-40 298 type included
|
||||||
- bugfix: 73_AutoShuttersControl: fix little bugs, change control logic
|
- bugfix: 73_AutoShuttersControl: fix little bugs, change control logic
|
||||||
- feature: 93_DbRep: devices contained in the selection definition are marked
|
- feature: 93_DbRep: devices contained in the selection definition are marked
|
||||||
|
@ -30,6 +30,7 @@ no if $] >= 5.017011, warnings => 'experimental::smartmatch';
|
|||||||
|
|
||||||
# Version History intern by DS_Starter:
|
# Version History intern by DS_Starter:
|
||||||
our %DbLog_vNotesIntern = (
|
our %DbLog_vNotesIntern = (
|
||||||
|
"4.5.0" => "28.08.2019 consider attr global logdir in set exportCache ",
|
||||||
"4.4.0" => "21.08.2019 configCheck changed: check if new DbLog version is available or the local one is modified ",
|
"4.4.0" => "21.08.2019 configCheck changed: check if new DbLog version is available or the local one is modified ",
|
||||||
"4.3.0" => "14.08.2019 new attribute dbSchema, add database schema to subroutines ",
|
"4.3.0" => "14.08.2019 new attribute dbSchema, add database schema to subroutines ",
|
||||||
"4.2.0" => "25.07.2019 DbLogValueFn as device specific function propagated in devices if dblog is used ",
|
"4.2.0" => "25.07.2019 DbLogValueFn as device specific function propagated in devices if dblog is used ",
|
||||||
@ -512,11 +513,9 @@ sub DbLog_Set($@) {
|
|||||||
my $current = $hash->{HELPER}{TC};
|
my $current = $hash->{HELPER}{TC};
|
||||||
my (@logs,$dir);
|
my (@logs,$dir);
|
||||||
|
|
||||||
if (!AttrVal($name,"expimpdir",undef)) {
|
my $dirdef = AttrVal("global", "logdir", $attr{global}{modpath}."/log/");
|
||||||
$dir = $attr{global}{modpath}."/log/";
|
$dir = AttrVal($name, "expimpdir", $dirdef);
|
||||||
} else {
|
$dir = $dir."/" if($dir !~ /.*\/$/);
|
||||||
$dir = AttrVal($name,"expimpdir",undef);
|
|
||||||
}
|
|
||||||
|
|
||||||
opendir(DIR,$dir);
|
opendir(DIR,$dir);
|
||||||
my $sd = "cache_".$name."_";
|
my $sd = "cache_".$name."_";
|
||||||
|
Loading…
Reference in New Issue
Block a user