Skip to content

Commit 42aa983

Browse files
bryceschoberigrr
authored andcommitted
Make DNSServer debug output like other ESP libs
1 parent 2abbc36 commit 42aa983

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

libraries/DNSServer/src/DNSServer.cpp

+3-11
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,9 @@ void DNSServer::replyWithIP()
144144

145145

146146

147-
#ifdef DEBUG
148-
DEBUG_OUTPUT.print("DNS responds: ");
149-
DEBUG_OUTPUT.print(_resolvedIP[0]);
150-
DEBUG_OUTPUT.print(".");
151-
DEBUG_OUTPUT.print(_resolvedIP[1]);
152-
DEBUG_OUTPUT.print(".");
153-
DEBUG_OUTPUT.print(_resolvedIP[2]);
154-
DEBUG_OUTPUT.print(".");
155-
DEBUG_OUTPUT.print(_resolvedIP[3]);
156-
DEBUG_OUTPUT.print(" for ");
157-
DEBUG_OUTPUT.println(getDomainNameWithoutWwwPrefix());
147+
#ifdef DEBUG_ESP_DNS
148+
DEBUG_ESP_PORT.printf("DNS responds: %s for %s\n",
149+
IPAddress(_resolvedIP).toString().c_str(), getDomainNameWithoutWwwPrefix().c_str() );
158150
#endif
159151
}
160152

0 commit comments

Comments
 (0)