@testdriverai/runner 7.8.0-test.60 → 7.8.0-test.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ably-service.js +4 -3
- package/package.json +1 -1
package/lib/ably-service.js
CHANGED
|
@@ -177,16 +177,17 @@ class AblyService extends EventEmitter {
|
|
|
177
177
|
const text = typeof msg === 'string' ? msg : String(msg);
|
|
178
178
|
const isError = /error/i.test(text) || /\[Level 1\]/i.test(text);
|
|
179
179
|
if (isError) {
|
|
180
|
+
console.error(`[Ably runner] ${text}`);
|
|
180
181
|
Sentry.withScope((scope) => {
|
|
181
182
|
scope.setTag('ably.client', 'runner');
|
|
182
183
|
scope.setTag('sandbox.id', self._sandboxId);
|
|
183
|
-
scope.setContext('ably_log', { raw: text
|
|
184
|
-
Sentry.captureMessage(`[Ably runner] ${text
|
|
184
|
+
scope.setContext('ably_log', { raw: text });
|
|
185
|
+
Sentry.captureMessage(`[Ably runner] ${text}`, 'error');
|
|
185
186
|
});
|
|
186
187
|
}
|
|
187
188
|
Sentry.addBreadcrumb({
|
|
188
189
|
category: 'ably.log',
|
|
189
|
-
message: text
|
|
190
|
+
message: text,
|
|
190
191
|
level: isError ? 'error' : 'info',
|
|
191
192
|
data: { client: 'runner', sandboxId: self._sandboxId },
|
|
192
193
|
});
|