Skip to content

Commit

Permalink
fix(debug)
Browse files Browse the repository at this point in the history
  • Loading branch information
maanimis committed Sep 5, 2024
1 parent 385d6ed commit cc1566c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -38,4 +38,4 @@
"type": "git",
"url": "git+https://github.com/maanimis/localCache.git"
}
}
}
4 changes: 2 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import express from "express";
import debugLib from "debug";
import { argv } from "./utils/argv.js";
import cors from "cors";
import {
setMemoryItem,
Expand All @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion src/utils/argv.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

0 comments on commit cc1566c

Please sign in to comment.