|
16 | 16 | */ |
17 | 17 |
|
18 | 18 | import { EVENTS } from '@reportportal/client-javascript/lib/constants/events'; |
| 19 | +import clientHelpers from '@reportportal/client-javascript/lib/helpers'; |
19 | 20 | import { sendEventToReporter } from './utils'; |
20 | 21 | import { Attribute } from './models'; |
21 | 22 | import { STATUSES, LOG_LEVELS } from './constants'; |
@@ -66,9 +67,10 @@ export const ReportingApi = { |
66 | 67 | message = '', |
67 | 68 | file?: Attachment, |
68 | 69 | suite?: string, |
69 | | - ): void => sendEventToReporter(EVENTS.ADD_LOG, { level, message, file }, suite), |
| 70 | + ): void => |
| 71 | + sendEventToReporter(EVENTS.ADD_LOG, { level, message, file, time: clientHelpers.now() }, suite), |
70 | 72 | launchLog: (level: LOG_LEVELS = LOG_LEVELS.INFO, message = '', file?: Attachment): void => |
71 | | - sendEventToReporter(EVENTS.ADD_LAUNCH_LOG, { level, message, file }), |
| 73 | + sendEventToReporter(EVENTS.ADD_LAUNCH_LOG, { level, message, file, time: clientHelpers.now() }), |
72 | 74 | trace: (message: string, file?: Attachment, suite?: string): void => |
73 | 75 | ReportingApi.log(LOG_LEVELS.TRACE, message, file, suite), |
74 | 76 | debug: (message: string, file?: Attachment, suite?: string): void => |
|
0 commit comments