Remove bad console.log
This commit is contained in:
parent
ca896c1c34
commit
7ae1c3e16e
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hibas123/logging",
|
"name": "@hibas123/logging",
|
||||||
"version": "2.4.0",
|
"version": "2.4.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "out/index.js",
|
"main": "out/index.js",
|
||||||
"types": "out/index.d.ts",
|
"types": "out/index.d.ts",
|
||||||
|
@ -488,7 +488,6 @@ function getCallerFile() {
|
|||||||
while (stack.length) {
|
while (stack.length) {
|
||||||
let caller_file = stack.shift();
|
let caller_file = stack.shift();
|
||||||
if (current_file !== caller_file.getFileName()) {
|
if (current_file !== caller_file.getFileName()) {
|
||||||
console.log(Object.keys(caller_file));
|
|
||||||
return {
|
return {
|
||||||
file: caller_file.getFileName(),
|
file: caller_file.getFileName(),
|
||||||
line: caller_file.getLineNumber(),
|
line: caller_file.getLineNumber(),
|
||||||
|
@ -157,7 +157,7 @@ export class ConsoleAdapter implements Adapter {
|
|||||||
console.log(prefix + text);
|
console.log(prefix + text);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
message.text.raw.forEach(console.log.bind(console));
|
message.text.raw.forEach((line) => console.log(prefix + line));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user