Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,12 @@ node server.
var log = require("node_erlastic").log;
log("your log");
```
### Warning

Do not ever use `console.log` because the erlang code reads stdout and will give timeout errors:
```erlang
res = receive do {^port,{:data,b}}->:erlang.binary_to_term(b) end
```
In Javascript, the stdout call is buffered, see this:
https://stackoverflow.com/questions/12510835/stdout-flush-for-nodejs