Precommit fixes

This commit is contained in:
Magnus Persson
2022-08-04 16:12:14 +02:00
parent 9e437d1e0d
commit 6c94c6b204
10 changed files with 136 additions and 78 deletions

View File

@ -254,7 +254,8 @@ void PushTarget::addHttpHeader(HTTPClient& http, String header) {
value.c_str());
http.addHeader(name, value);
} else {
writeErrorLog("PUSH: Unable to set header, invalid value %s", header.c_str());
writeErrorLog("PUSH: Unable to set header, invalid value %s",
header.c_str());
}
}
@ -330,7 +331,8 @@ void PushTarget::sendHttpPost(TemplatingEngine& engine, bool isSecure,
_lastSuccess = true;
Log.notice(F("PUSH: HTTP post successful, response=%d" CR), _lastCode);
} else {
writeErrorLog("PUSH: HTTP post failed response=%d http%d", _lastCode, index+1);
writeErrorLog("PUSH: HTTP post failed response=%d http%d", _lastCode,
index + 1);
}
if (isSecure) {
@ -485,7 +487,8 @@ void PushTarget::sendMqtt(TemplatingEngine& engine, bool isSecure,
Log.notice(F("PUSH: MQTT publish successful on %s" CR), topic.c_str());
_lastCode = 0;
} else {
writeErrorLog("PUSH: MQTT push on %s failed error=%d", topic.c_str(), mqtt.lastError());
writeErrorLog("PUSH: MQTT push on %s failed error=%d", topic.c_str(),
mqtt.lastError());
}
}