fix Log3 Fn integration

[Ticket: #9]
This commit is contained in:
Marko Oldenburg 2022-03-29 15:22:52 +02:00
parent 3845e508c7
commit 19f349d751
2 changed files with 9 additions and 5 deletions

View File

@ -1,2 +1,2 @@
UPD 2022-03-29_08:00:00 18968 FHEM/82_LGTV_WebOS.pm
UPD 2022-03-29_07:50:12 54974 lib/FHEM/Devices/LGTV/LGTVWebOS.pm
UPD 2022-03-29_15:22:28 55046 lib/FHEM/Devices/LGTV/LGTVWebOS.pm

View File

@ -710,11 +710,13 @@ sub Write {
}
catch {
if ( $_->isa('autodie::exception') && $_->matches(':io') ) {
Log3( $name, 2, "LGTV_WebOS ($name) - can't write to socket: $_" );
::Log3( $name, 2,
"LGTV_WebOS ($name) - can't write to socket: $_" );
return;
}
else {
Log3( $name, 2, "LGTV_WebOS ($name) - can't write too socket: $_" );
::Log3( $name, 2,
"LGTV_WebOS ($name) - can't write too socket: $_" );
return;
}
};
@ -756,11 +758,13 @@ sub Read {
}
catch {
if ( $_->isa('autodie::exception') && $_->matches(':io') ) {
Log3( $name, 2, "LGTV_WebOS ($name) - can't read from socket: $_" );
::Log3( $name, 2,
"LGTV_WebOS ($name) - can't read from socket: $_" );
return;
}
else {
Log3( $name, 2, "LGTV_WebOS ($name) - can't read from socket: $_" );
::Log3( $name, 2,
"LGTV_WebOS ($name) - can't read from socket: $_" );
return;
}
};