Skip to content

Commit

Permalink
Fix: logger check
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jun 23, 2024
1 parent f837953 commit 59097e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
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": "hivessh",
"version": "1.0.15",
"version": "1.1.0",
"description": "HiveSsh simplifies SSH2 connections via promise-based task execution on Linux servers with built-in server utilities and powerful command execution functions",
"main": "dist/index.js",
"type": "module",
Expand Down
5 changes: 1 addition & 4 deletions src/utils/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function getLogTypeByLevel(
}
}

if (!customLogType[level]) {
if (customLogType[level]) {
return {
name: customLogType[level].name,
short: (customLogType[level].short)
Expand All @@ -62,9 +62,6 @@ export function getLogTypeByLevel(
name: "Unknown",
short: "UNK",
}



}

export interface Log {
Expand Down

0 comments on commit 59097e6

Please sign in to comment.