Skip to content

Commit

Permalink
Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hugithordarson committed Feb 12, 2024
1 parent b8a11c8 commit 9812019
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ng-appserver/src/main/java/ng/appserver/NGApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ private NGResponse noHandlerResponse( final NGRequest request ) {
}

final Optional<byte[]> resourceBytes = resourceManager().bytesForPublicResourceNamed( resourcePath );
System.out.println( "resourcePath: " + resourcePath );
System.out.println( "resourceBytes: " + resourceBytes );
return NGResourceRequestHandler.responseForResource( resourceBytes, resourcePath );
}

Expand Down Expand Up @@ -488,12 +490,12 @@ public NGActionResults defaultResponse( final NGRequest request ) {
/*
NGResponse response = new NGResponse( "Welcome to NGObjects!\nSorry, but I'm young and I still have no idea how to handle the default request", 404 );
response.appendContentString( "\n\nWould you like to see your request headers instead?\n\n" );
for( Entry<String, List<String>> header : request.headers().entrySet() ) {
response.appendContentString( header.getKey() + " : " + header.getValue() );
response.appendContentString( "\n" );
}
return response;
*/
}
Expand Down

0 comments on commit 9812019

Please sign in to comment.