add more log output for first test
geändert: lib/FHEM/backupToStorage.pm
This commit is contained in:
parent
973f81a1d5
commit
4f9e4e53c3
@ -1,2 +1,2 @@
|
||||
UPD 2020-06-17_12:01:37 3338 FHEM/98_backupToStorage.pm
|
||||
UPD 2020-06-17_14:37:42 9679 lib/FHEM/backupToStorage.pm
|
||||
UPD 2020-06-17_14:42:16 9933 lib/FHEM/backupToStorage.pm
|
||||
|
@ -201,7 +201,10 @@ sub PushToStorage {
|
||||
|
||||
my $name = $hash->{NAME};
|
||||
|
||||
Log3 $name, 4, "backupToStorage ($name) - push to storage function";
|
||||
|
||||
if ( AttrVal( $name, 'bTSType', 'Nextcloud' ) eq 'Nextcloud' ) {
|
||||
Log3 $name, 4, "backupToStorage ($name) - push to storage function: Nextcloud detected";
|
||||
ncUpload( $hash, ReadingsVal( $name, 'fhemBackupFile', 'none' ) );
|
||||
}
|
||||
|
||||
@ -214,6 +217,8 @@ sub ncUpload {
|
||||
|
||||
my $name = $hash->{NAME};
|
||||
|
||||
Log3 $name, 4, "backupToStorage ($name) - nextcloud upload function";
|
||||
|
||||
open FD, '<',
|
||||
"$backupFile"
|
||||
or return Log3( $name, 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user