forked from across-protocol/relayer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What was the problem? This PR resolves LISK-963 ### How was it solved? * Remove 2nd/3rd params from JSON.stringify * Update error to be part of the log message ### How was it tested? * Run locally
- Loading branch information
1 parent
951477b
commit 8c76058
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
// Fix to console log in single line, and add error message to log. | ||
import winston from "winston"; | ||
import { createNewLogger, createConsoleTransport } from "@uma/logger"; | ||
|
||
const transports = process.env.DEBUG_LOG === "true" ? [createConsoleTransport()] : [new winston.transports.Console()]; | ||
const config = process.env.DEBUG_LOG === "true" ? {} : { createConsoleTransport: false }; | ||
|
||
export const Logger = createNewLogger(transports, config); | ||
|
||
export type DefaultLogLevels = "debug" | "info" | "warn" | "error"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters