Skip to content

Commit aa5f676

Browse files
committed
message param last 1600 chars of output instead of first
1 parent 839bc2d commit aa5f676

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/cronitor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function Cronitor(apiKey, config={}) {
113113
await monitor.ping({state: _cronitor.Monitor.State.RUN, series})
114114
try {
115115
let out = await Promise.resolve(callback(args))
116-
let message = typeof out == 'string' ? out.slice(0, 1600) : null
116+
let message = typeof out == 'string' ? out.slice(-1600) : null
117117
await monitor.ping({state: _cronitor.Monitor.State.COMPLETE, message, series})
118118
return out
119119
} catch(e) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cronitor",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "A small library for reliably monitoring cron jobs, control-loops, or other important system events with Cronitor.",
55
"main": "lib/cronitor.js",
66
"repository": {

0 commit comments

Comments
 (0)