Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Nov 8, 2024
1 parent 7278daf commit e363822
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions lib/RequestLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,15 +329,6 @@ class RequestLogger {
return this.log('fatal', msg, data);
}

/**
* Logging function to write the last log entry for the given RequestLogger
*
* @returns {EndLogger} The EndLogger instance to continue logging.
*/
end() {
return this.endLogger;
}

/**
* @version 1.1
* @method RequestLogger#end
Expand Down Expand Up @@ -365,9 +356,12 @@ class RequestLogger {
* for the log entry. This is how to provide
* metadata for a specific log entry.
*
* @returns {undefined}
* @returns {EndLogger|undefined}
*/
end(msg, data) {
if(msg===undefined && data===undefined) {
return this.endLogger;
}
return this.log(this.endLevel, msg, data, true);
}

Expand Down

0 comments on commit e363822

Please sign in to comment.