add log output to FileUpload Fn

This commit is contained in:
Marko Oldenburg 2020-10-21 09:01:15 +02:00
parent 6dde3f7152
commit 138ee2145f
2 changed files with 5 additions and 1 deletions

View File

@ -1,2 +1,2 @@
UPD 2020-10-20_15:51:15 6126 FHEM/98_backupToStorage.pm UPD 2020-10-20_15:51:15 6126 FHEM/98_backupToStorage.pm
UPD 2020-10-20_20:07:26 16014 lib/FHEM/backupToStorage.pm UPD 2020-10-21_09:00:58 16186 lib/FHEM/backupToStorage.pm

View File

@ -417,6 +417,10 @@ sub FileUpload {
if ( $subprocess->{type} eq 'Nextcloud' ) { if ( $subprocess->{type} eq 'Nextcloud' ) {
my ($returnString,$returnCode) = ExecuteNCupload($subprocess); my ($returnString,$returnCode) = ExecuteNCupload($subprocess);
Log3( $name, 5,
"backupToStorage ($name) - FileUpload Nextcloud, returnCode: $returnCode
, returnString: $returnString" );
$response->{ncUpload} = ( $returnCode == 72057594037927935 $response->{ncUpload} = ( $returnCode == 72057594037927935
&& $returnString eq '' && $returnString eq ''
? 'upload successfully' ? 'upload successfully'