Skip to content

Commit 6d53ede

Browse files
author
Florian Lenz
committed
[logger] fixed log polling
1 parent 40db1eb commit 6d53ede

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pangea-cli",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"main": "index.js",
55
"preferGlobal": true,
66
"bin": "./index.js",

src/protocols.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ const loggerProtocolFactory = () =>
3434

3535
pull(
3636
conn,
37-
pull.map(data => {
38-
console.log(data);
39-
return data.toString('utf8').replace('\n', '');
40-
}),
37+
pull.map(data => data.toString('utf8').replace('\n', '')),
38+
pull.drain(console.log),
4139
);
4240
});
4341

0 commit comments

Comments
 (0)