OTA debug level

I looked here to find what debug level to use, and i am using:

build_flags =
  -DDEBUG_ESP_SSL
  -DDEBUG_ESP_TLS_MEM
  -DDEBUG_ESP_HTTP_CLIENT
  -DDEBUG_ESP_HTTP_SERVER
  -DDEBUG_ESP_CORE
  -DDEBUG_ESP_WIFI
  -DDEBUG_ESP_HTTP_UPDATE
  -DDEBUG_ESP_UPDATER
  -DDEBUG_ESP_OTA

Sadly this doesn’t add any output for my error at all, what flag am i missing to activate?

For reference:
this:


#include <list>
#include <WString.h>
#include <ArduinoJson.h>
#include <ESP8266HTTPClient.h>
#include <WiFiUdp.h>
#include <time.h>
#include <ESP8266httpUpdate.h>

int update_firmware();


void setup() {
WiFi.begin(ssid,pw);
        Serial.begin(SERIAL_BAUD, SERIAL_8N1, SERIAL_TX_ONLY);

}

void loop() {
int update_firmware();

}

int update_firmware(){
        noInterrupts();
        Serial.println("[UPDATE] started update");
        Serial.setDebugOutput(true);

        IPAddress dnsAddr = IPAddress(8,8,8,8);

        WiFi.config(WiFi.localIP(),WiFi.gatewayIP(),WiFi.subnetMask(),dnsAddr );


        Serial.print("DNS #1, #2 IP: ");
        WiFi.dnsIP().printTo(Serial);
        Serial.print(", ");
        WiFi.dnsIP(1).printTo(Serial);
        Serial.println();

        IPAddress FIRMWARE_SERVER_IP;
        WiFi.hostByName(FIRMWARE_SERVER, FIRMWARE_SERVER_IP);


        Serial.println("firmware ip: ");
        Serial.println(FIRMWARE_SERVER_IP);
        Serial.println("[UPDATE] contacting: "+String(FIRMWARE_SERVER)+" PORT: "+String(FIRMWARE_FILE_PORT)+ " FILE: "+String(FIRMWARE_FILE_NAME));
        //t_httpUpdate_return ret = ESPhttpUpdate.update(FIRMWARE_SERVER,FIRMWARE_FILE_PORT, FIRMWARE_FILE_NAME);
t_httpUpdate_return ret = ESPhttpUpdate.update("http://intertechno-smarthome-api.esy.es/api/v1/firmware/getFile/1");
        Serial.println("[UPDATE] ended update");
        switch(ret) {
        case HTTP_UPDATE_FAILED:
                Serial.printf("[UPDATE] HTTP_UPDATE_FAILED Error (%d): %s\n", ESPhttpUpdate.getLastError(), ESPhttpUpdate.getLastErrorString().c_str());
                return 2;
                break;

        case HTTP_UPDATE_NO_UPDATES:
                Serial.println("[UPDATE] HTTP_UPDATE_NO_UPDATES");
                return 3;
                break;

        case HTTP_UPDATE_OK:
                Serial.println("[UPDATE] HTTP_UPDATE_OK");
                return 1;
                break;

        default:
                Serial.print("[UPDATE] Undefined HTTP_UPDATE Code: "); Serial.println(ret);
                return 4;
        }

}

throws this

[UPDATE] started update
STUB: dhcp_stop
DNS #1, #2 IP: 8.8.8.8, 192.168.0.1
firmware ip:
185.224.137.164
[UPDATE] contacting: intertechno-smarthome-api.esy.es PORT: 80 FILE: /api/v1/firmware/getFile/1
[UPDATE] ended update
[UPDATE] HTTP_UPDATE_FAILED Error (-101): Server Did Not Report Size

I am trying to find out why.