From 836b21824dabaa7f0dae354df1cf7658ff8a7c9e Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Sun, 14 Aug 2016 22:36:56 +0300 Subject: [PATCH] Add logging of requests not found --- neomi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neomi.py b/neomi.py index 0572a78..defa747 100644 --- a/neomi.py +++ b/neomi.py @@ -554,6 +554,7 @@ class Serve(threading.Thread): file = get_file(full_path, config = self.config) except FileNotFoundError: + log('%s: Requested path not found: %s' % (self.address, path)) reader = StringReader('%s not found\n' % path) send_header(self.sock, protocol, Status.notfound, 'text/plain', config = self.config) send_file(self.sock, reader, protocol, 'text/plain', config = self.config)