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