diff --git a/src/io/HTTPHandler.cc b/src/io/HTTPHandler.cc index 563c2f5..7bdf251 100644 --- a/src/io/HTTPHandler.cc +++ b/src/io/HTTPHandler.cc @@ -38,7 +38,7 @@ namespace crouton::io::http { auto uri = _parser.requestURI.value(); string path(uri.path); - spdlog::info("HTTPHandler: Request is {} {}", _parser.requestMethod, string(uri)); + LNet->info("HTTPHandler: Request is {} {}", _parser.requestMethod, string(uri)); Headers responseHeaders; responseHeaders.set("User-Agent", "Crouton"); @@ -129,7 +129,7 @@ namespace crouton::io::http { Future Handler::Response::finishHeaders() { if (!_sentHeaders) { - spdlog::info("HTTPHandler: Sending {} response", status); + LNet->info("HTTPHandler: Sending {} response", status); AWAIT _handler->writeHeaders(status, statusMessage, _headers); } _sentHeaders = true; diff --git a/src/io/apple/NWConnection.cc b/src/io/apple/NWConnection.cc index c2634cc..4694a34 100644 --- a/src/io/apple/NWConnection.cc +++ b/src/io/apple/NWConnection.cc @@ -189,7 +189,7 @@ namespace crouton::io::apple { bool is_complete, nw_error_t error) { if (is_complete) { - spdlog::debug("NWConnection read EOF"); + LNet->debug("NWConnection read EOF"); _eof = true; } if (content) { @@ -198,7 +198,7 @@ namespace crouton::io::apple { _content = dispatch_data_create_map(content, &data, &size); _contentBuf = ConstBytes(data, size); _contentUsed = peek ? 0 : size; - spdlog::debug("NWConnection read {} bytes", size); + LNet->debug("NWConnection read {} bytes", size); onRead->setResult(_contentBuf); } else if (error) { onRead->setResult(toError(error));