Skip to content

Commit

Permalink
remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
connoratrug committed Nov 15, 2024
1 parent 7be9532 commit 08cde1c
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* to allow for nice urls, and make it easier for 'schema' app developers we include the schema in
Expand All @@ -18,8 +16,6 @@
*/
public class StaticFileMapper {

private static Logger logger = LoggerFactory.getLogger(StaticFileMapper.class);

private StaticFileMapper() {
// hide constructor
}
Expand Down Expand Up @@ -92,7 +88,7 @@ public static void addFileToContext(Context ctx, String path, String mimeType) {
ctx.status(404).result("File not found: " + ctx.path());
return;
}
logger.info("Serving file: " + path);

if (mimeType == null) {
mimeType = Files.probeContentType(Path.of(path));
if (mimeType == null) {
Expand Down

0 comments on commit 08cde1c

Please sign in to comment.