mirror of https://github.com/tycrek/ass.git
use `process.cwd()` instead of `__dirname` for `path.join`
This commit is contained in:
parent
b6d6ba558b
commit
9c07e84b34
2
utils.js
2
utils.js
|
@ -74,7 +74,7 @@ function getDatedDirname() {
|
|||
}
|
||||
|
||||
// Set up pathing & the logger
|
||||
const path = (...paths) => Path.join(__dirname, ...paths);
|
||||
const path = (...paths) => Path.join(process.cwd(), ...paths);
|
||||
const logger = new TLog({
|
||||
level: process.env.LOG_LEVEL || (process.env.NODE_ENV === 'production' ? 'info' : 'debug'),
|
||||
timestamp: {
|
||||
|
|
Loading…
Reference in New Issue