Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Logs lost if LogEntries is unreachable. #2
If there's a networking problem accessing LogEntries, the error will be logged to console.error(), but the log entry itself will discarded.
Other solutions I've seen involve pushing log entries on an in-memory queue, and flushing the queue when the connection is up again. It's important to have some upper-limit on the queue size in that design so memory doesn't end up exhausted from queue size growth.