diff options
author | bptato <nincsnevem662@gmail.com> | 2024-07-30 19:46:22 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-07-30 19:58:42 +0200 |
commit | afec3aabd21d418603a8566393750e789ee6007a (patch) | |
tree | 41308537a21906c5bd40b70feded49e3e5227e26 /src/local/client.nim | |
parent | 98fdd778d2c222b9b6b61d181680a74a09ecf44f (diff) | |
download | chawan-afec3aabd21d418603a8566393750e789ee6007a.tar.gz |
console, client: optimize console.log (etc.)
use JSValue varargs instead
Diffstat (limited to 'src/local/client.nim')
-rw-r--r-- | src/local/client.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/local/client.nim b/src/local/client.nim index b547f810..f63668d2 100644 --- a/src/local/client.nim +++ b/src/local/client.nim @@ -530,7 +530,7 @@ proc handleError(client: Client; fd: int) = if fd in client.fdmap: let container = client.fdmap[fd] if container != client.consoleWrapper.container: - client.console.log("Error in buffer", $container.url) + client.console.error("Error in buffer", $container.url) else: client.consoleWrapper.container = nil client.selector.unregister(fd) @@ -695,7 +695,7 @@ proc dumpBuffers(client: Client) = client.pager.drawBuffer(container, stdout) client.pager.handleEvents(container) except IOError: - client.console.log("Error in buffer", $container.url) + client.console.error("Error in buffer", $container.url) # check for errors client.handleRead(client.forkserver.estream.fd) client.quit(1) |