grantcarthew / node-rethinkdb-job-queue

A persistent job or task queue backed by RethinkDB.
https://github.com/grantcarthew/node-rethinkdb-job-queue/wiki
MIT License
156 stars 16 forks source link

Job.addLog() should allow string as param #8

Closed TomKaltz closed 8 years ago

TomKaltz commented 8 years ago

A Log object with sane defaults should be automatically created and added when passing a string to Job.addLog().

grantcarthew commented 8 years ago

Done. v0.4.0 supports Log objects, strings and other objects for the Job.addLog method call. If you pass a string or object it gets logged under a log.data property.

Thanks.

TomKaltz commented 8 years ago

Very nice!

On Fri, Sep 30, 2016 at 1:31 AM, Grant Carthew notifications@github.com wrote:

Done. v0.4.0 supports Log objects, strings and other objects for the Job.addLog method call. If you pass a string or object it gets logged under a log.data property.

Thanks.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/grantcarthew/node-rethinkdb-job-queue/issues/8#issuecomment-250662162, or mute the thread https://github.com/notifications/unsubscribe-auth/AC0_IROws6_sUngAXAwDw30NeDdPOi7bks5qvJ6lgaJpZM4KHMGT .