Refactor logger and error handling modules

Moved isTrueFromDotEnv to logger.js and updated its usage. Simplified logger import and instantiation across modules. Added errors.js for centralized error exports. Set default error code in DefaultError. Cleaned up unused imports in utils.js.
This commit is contained in:
2026-01-27 04:08:46 +01:00
parent c531f2c82c
commit 2e30763da5
5 changed files with 11 additions and 8 deletions

3
errors/errors.js Normal file
View File

@@ -0,0 +1,3 @@
module.exports = {
DefaultError: require("./DefaultError")
}