Skip to content

Commit

Permalink
include pkg-update.log, prevent error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Mar 24, 2019
1 parent 3ef9712 commit 4c6dc04
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion addon_files/redmatic/www/log.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@ if {[info exists sid] && [check_session $sid]} {

catch {exec /usr/local/addons/redmatic/bin/redmaticVersions} result
puts $result
catch {exec cat /var/log/messages.0 /var/log/messages | grep node-red\\|redmatic} result
puts ""
if {[file exists /usr/local/addons/redmatic/var/pkg-update.log]} {
catch {exec cat /usr/local/addons/redmatic/var/pkg-update.log} result
puts $result
puts ""
}
if {[file exists /var/log/messages.0]} {
catch {exec cat /var/log/messages.0 | grep node-red\\|redmatic } result
puts $result
}
catch {exec cat /var/log/messages | grep node-red\\|redmatic} result
puts $result
exit 0
} else {
Expand Down

0 comments on commit 4c6dc04

Please sign in to comment.