Skip to content

Commit

Permalink
Tweaking logging
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Aug 29, 2024
1 parent 00854bb commit 01d5326
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/cli.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 20.0.3
* @version 20.0.4
*/
'use strict';

Expand Down
4 changes: 2 additions & 2 deletions dist/woodland.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 20.0.3
* @version 20.0.4
*/
'use strict';

Expand Down Expand Up @@ -566,7 +566,7 @@ class Woodland extends node_events.EventEmitter {

ignore (fn) {
this.ignored.add(fn);
this.log(`type=ignore, message="${MSG_IGNORED_FN}"`);
this.log(`type=ignore, message="${MSG_IGNORED_FN}", name="${fn.name}"`);

return this;
}
Expand Down
4 changes: 2 additions & 2 deletions dist/woodland.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 20.0.3
* @version 20.0.4
*/
import {STATUS_CODES,METHODS}from'node:http';import {join,extname}from'node:path';import {EventEmitter}from'node:events';import {stat,readdir}from'node:fs/promises';import {etag}from'tiny-etag';import {precise}from'precise';import {lru}from'tiny-lru';import {createRequire}from'node:module';import {fileURLToPath,URL}from'node:url';import {readFileSync,createReadStream}from'node:fs';import {coerce}from'tiny-coerce';import mimeDb from'mime-db';const __dirname$1 = fileURLToPath(new URL(".", import.meta.url));
const require = createRequire(import.meta.url);
Expand Down Expand Up @@ -546,7 +546,7 @@ function writeHead (res, headers = {}) {

ignore (fn) {
this.ignored.add(fn);
this.log(`type=ignore, message="${MSG_IGNORED_FN}"`);
this.log(`type=ignore, message="${MSG_IGNORED_FN}", name="${fn.name}"`);

return this;
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woodland",
"version": "20.0.3",
"version": "20.0.4",
"description": "Lightweight HTTP framework with automatic headers",
"type": "module",
"types": "types/woodland.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/woodland.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export class Woodland extends EventEmitter {

ignore (fn) {
this.ignored.add(fn);
this.log(`type=ignore, message="${MSG_IGNORED_FN}"`);
this.log(`type=ignore, message="${MSG_IGNORED_FN}", name="${fn.name}"`);

return this;
}
Expand Down

0 comments on commit 01d5326

Please sign in to comment.