Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit error log messages to pinpoint source. #2

Merged
merged 1 commit into from
Jul 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions emailreport-module/emailreportgenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ function emailreport_generate_solarpv($config)
$solar_data = json_decode(file_get_contents("$host/feed/data.json?id=$solar_kwh&start=$start&end=$end&mode=daily&apikey=$apikey"));

if (count($use_data)!=8) {
echo "Not enough days returned in data request\n"; return false;
echo "Not enough days returned in use data request\n"; return false;
}

if (count($solar_data)!=8) {
echo "Not enough days returned in data request\n"; return false;
echo "Not enough days returned in solar data request\n"; return false;
}

if (count($solar_data)!=count($use_data)) {
Expand Down