Skip to content

Commit

Permalink
changed some spdlog::info to LNet->info
Browse files Browse the repository at this point in the history
  • Loading branch information
snej committed Sep 29, 2023
1 parent 1f45095 commit 5d8abd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/io/HTTPHandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -129,7 +129,7 @@ namespace crouton::io::http {

Future<void> 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;
Expand Down
4 changes: 2 additions & 2 deletions src/io/apple/NWConnection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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));
Expand Down

0 comments on commit 5d8abd2

Please sign in to comment.