Skip to content

Commit 5057086

Browse files
committed
Log filenames on GET.
1 parent e205b8b commit 5057086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ldp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,11 @@ class LDP {
411411
}
412412
stream
413413
.on('error', function (err) {
414-
debug.handlers('GET -- Read error:' + err.message)
414+
debug.handlers(`GET -- error reading ${filename}: ${err.message}`)
415415
return callback(error(err, "Can't create file " + err))
416416
})
417417
.on('open', function () {
418-
debug.handlers('GET -- Read Start.')
418+
debug.handlers(`GET -- Reading ${filename}`)
419419
var contentType = mime.lookup(filename) || DEFAULT_CONTENT_TYPE
420420
if (utils.hasSuffix(filename, ldp.turtleExtensions)) {
421421
contentType = 'text/turtle'

0 commit comments

Comments
 (0)