.
This commit is contained in:
parent
505f64f70b
commit
6a0da63093
4 changed files with 7 additions and 4 deletions
3
dist/logger.js
vendored
3
dist/logger.js
vendored
|
|
@ -27,7 +27,8 @@ const logger = ({ app, eProducao }) => ({ inquilino, usuario }) => async (level,
|
|||
if (!eProducao) {
|
||||
app = `DEV-${app}`;
|
||||
}
|
||||
if (__filename && typeof process != "undefined" && process.cwd()) {
|
||||
const isNode = typeof process !== "undefined" && process.versions?.node;
|
||||
if (isNode && __filename) {
|
||||
__filename = __filename.replace(process.cwd(), "");
|
||||
}
|
||||
if (local) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue