Skip to content

Commit 4bc77a8

Browse files
committed
Add Pushnotice: to namespace log messages in debug mode.
1 parent 8a0b015 commit 4bc77a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ function sendRequest(namespace, text, level='INFO', options={}) {
4545
}
4646
};
4747
request(requestOptions).then((res) => {
48-
if (options.debug) console.log("Successfully sent Notification to PushNotice API");
48+
if (options.debug) console.log("PushNotice: Successfully sent Notification to PushNotice API");
4949
}).catch((err) => {
50-
if (options.debug) console.error("Error sending Notification to PushNotice API");
50+
if (options.debug) console.error("PushNotice: Error sending Notification to PushNotice API");
5151
});
5252
}
5353

0 commit comments

Comments
 (0)