build
This commit is contained in:
parent
b5f932ab33
commit
92ffd22f79
6 changed files with 7 additions and 7 deletions
|
|
@ -10,7 +10,7 @@ interface LogOptions {
|
|||
conta?: string
|
||||
usuario?: string
|
||||
detalhes?: unknown[]
|
||||
eProdicao: boolean
|
||||
eProducao: boolean
|
||||
}
|
||||
|
||||
interface LokiStream {
|
||||
|
|
@ -25,7 +25,7 @@ interface LokiStream {
|
|||
|
||||
const createLogger = (level: LogLevel) => {
|
||||
const sendToLoki = async (mensagem: string, options: LogOptions) => {
|
||||
if (!options.eProdicao) {
|
||||
if (!options.eProducao) {
|
||||
console.log(level, mensagem, options)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue