From 59097e6956f595a97b0d62fe61e4eb36e5d03210 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 23 Jun 2024 18:29:17 +0000 Subject: [PATCH] Fix: logger check --- package-lock.json | 4 ++-- package.json | 2 +- src/utils/logger.ts | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 72bece8..cb2a3e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hivessh", - "version": "1.0.15", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hivessh", - "version": "1.0.15", + "version": "1.1.0", "license": "MIT", "dependencies": { "ssh2": "^1.15.0" diff --git a/package.json b/package.json index 3ba22e5..b197ab4 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/utils/logger.ts b/src/utils/logger.ts index debfaa4..d2c5199 100644 --- a/src/utils/logger.ts +++ b/src/utils/logger.ts @@ -47,7 +47,7 @@ export function getLogTypeByLevel( } } - if (!customLogType[level]) { + if (customLogType[level]) { return { name: customLogType[level].name, short: (customLogType[level].short) @@ -62,9 +62,6 @@ export function getLogTypeByLevel( name: "Unknown", short: "UNK", } - - - } export interface Log {