diff --git a/package.json b/package.json index fb9f23d..5ac15b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "localcache-meisam", - "version": "2.7.0", + "version": "2.8.0", "description": "Managing in-memory and local storage through RESTful API endpoints ", "main": "src/models/index.js", "type": "module", @@ -38,4 +38,4 @@ "type": "git", "url": "git+https://github.com/maanimis/localCache.git" } -} +} \ No newline at end of file diff --git a/src/app.js b/src/app.js index c2ea7e0..e5bf1e1 100755 --- a/src/app.js +++ b/src/app.js @@ -2,6 +2,7 @@ import express from "express"; import debugLib from "debug"; +import { argv } from "./utils/argv.js"; import cors from "cors"; import { setMemoryItem, @@ -15,9 +16,8 @@ import { } from "./controllers/localController.js"; import Msg from "./utils/msg.js"; import { logo } from "./utils/logo.js"; -import { argv } from "./utils/argv.js"; -const debug = debugLib("app"); +const debug = debugLib("app:main"); const app = express(); app.use(cors()); diff --git a/src/utils/argv.js b/src/utils/argv.js index 885cdea..f8b84c6 100644 --- a/src/utils/argv.js +++ b/src/utils/argv.js @@ -35,7 +35,7 @@ const argv = yargs(hideBin(process.argv)) .alias("help", "h").argv; if (argv.debug) { - debug.enable("app"); + debug.enable("app:*"); } export { argv };