-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Console log is flooded with report portal events #113
Comments
We have the same issues because these messages are sent to the logging system and are redundant. I noticed that ReportingApi sends commands ( src/reportingApi.ts log: (
level: LOG_LEVELS = LOG_LEVELS.INFO,
message = '',
file?: Attachment,
suite?: string,
): void => sendEventToReporter(EVENTS.ADD_LOG, { level, message, file }, suite), src/utils.ts export const sendEventToReporter = (type: string, data: any, suite?: string): void => {
process.stdout.write(JSON.stringify({ type, data, suite }));
}; And then there's this method in src/reporter.ts that reads stdout: onStdOut(chunk: string | Buffer, test?: TestCase): void {
try {
const { type, data, suite: suiteName } = JSON.parse(String(chunk));
switch (type) {
...
case EVENTS.SET_TEST_CASE_ID:
this.setTestCaseId(data, test, suiteName);
break;
...
case EVENTS.ADD_LOG:
this.sendTestItemLog(data, test, suiteName);
break;
...
}
} catch (e) {
if (test) {
this.sendTestItemLog({ message: String(chunk) }, test);
}
}
} I wonder why the events should be printed to the stdout. Maybe @AmsterGet can provide some details |
Hi @viktor-maksymenko ! |
Hello @AmsterGet is there any update on the possibility to reduce or switch off the console logs, especially for addAttributes? |
Hello @AmsterGet! I'm joining the conversation with the same issue as gentlemen above. |
Hi @valerii-lukomskyi, thanks for pinging me up! |
Console log is flooded with report portal events like follwing
{"type":"rp:addLog","data":{"level":"TRACE","message":"[7/7/2023 1:08:19 PM] WARNING: Not logged out"}}
can it be disabled?
The text was updated successfully, but these errors were encountered: