Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ace8170323 |
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "quetza-bot",
|
"name": "quetza-bot",
|
||||||
"version": "4.2.1",
|
"version": "4.2.2",
|
||||||
"description": "Discord multipurpose bot",
|
"description": "Discord multipurpose bot",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
+1
-8
@@ -4,17 +4,10 @@ const logger = winston.createLogger({
|
|||||||
level: "info",
|
level: "info",
|
||||||
format: winston.format.combine(winston.format.timestamp(), winston.format.json()),
|
format: winston.format.combine(winston.format.timestamp(), winston.format.json()),
|
||||||
transports: [
|
transports: [
|
||||||
|
new winston.transports.Console({ format: winston.format.simple() }),
|
||||||
new winston.transports.File({ filename: "logs/error.log", level: "error" }),
|
new winston.transports.File({ filename: "logs/error.log", level: "error" }),
|
||||||
new winston.transports.File({ filename: "logs/combined.log" })
|
new winston.transports.File({ filename: "logs/combined.log" })
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== "production") {
|
|
||||||
logger.add(
|
|
||||||
new winston.transports.Console({
|
|
||||||
format: winston.format.simple()
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default logger;
|
export default logger;
|
||||||
@@ -4,7 +4,7 @@ import { fileURLToPath } from "url";
|
|||||||
const name = "core";
|
const name = "core";
|
||||||
const description = "Quetza core functionality";
|
const description = "Quetza core functionality";
|
||||||
const author = "unknowableshade";
|
const author = "unknowableshade";
|
||||||
const tag = "4.2.0";
|
const tag = "4.2.2";
|
||||||
|
|
||||||
const rootDir = path.dirname(fileURLToPath(import.meta.url));
|
const rootDir = path.dirname(fileURLToPath(import.meta.url));
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user