mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 12:13:57 +00:00
logs
This commit is contained in:
parent
fb2b47615f
commit
e54bd1da3f
@ -11,7 +11,7 @@ global.console = {
|
||||
log: (...messages) => {
|
||||
try {
|
||||
const parsedMessage = JSON.parse(messages[0]);
|
||||
process.stdout.write(pretty(parsedMessage) + '\n');
|
||||
process.stdout.write(pretty(parsedMessage));
|
||||
} catch (error) {
|
||||
process.stdout.write(messages.join(' ') + '\n');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user