correção em logger
This commit is contained in:
parent
58bbbec925
commit
45e634f7e2
4 changed files with 14 additions and 8 deletions
9
dist/logger.js
vendored
9
dist/logger.js
vendored
|
|
@ -35,14 +35,17 @@ const logger = ({ app: app_e, eProducao, parametros: parametrosAmbiente }) => ({
|
|||
__filename = __filename.replace(cwd, "");
|
||||
}
|
||||
if (local) {
|
||||
detalhes = [`${(0, variaveisComuns_1.nomeVariavel)({ local })}="${local}"`];
|
||||
detalhes = [`${(0, variaveisComuns_1.nomeVariavel)({ local })}="${local}"`, ...(detalhes || [])];
|
||||
}
|
||||
if (__filename) {
|
||||
detalhes = [`${(0, variaveisComuns_1.nomeVariavel)({ __filename })}="${__filename}"`];
|
||||
detalhes = [
|
||||
`${(0, variaveisComuns_1.nomeVariavel)({ __filename })}="${__filename}"`,
|
||||
...(detalhes || []),
|
||||
];
|
||||
}
|
||||
const timestamp = `${Date.now()}000000`;
|
||||
const mainLog = detalhes?.length
|
||||
? `${mensagem} | ${detalhes.map((d) => JSON.stringify(d)).join(" ")}`
|
||||
? `${mensagem} | ${detalhes.map((d) => JSON.stringify(d)).join(" | ")}`
|
||||
: mensagem;
|
||||
const payload = {
|
||||
stream: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue