Skip to content

Commit 081b6da

Browse files
author
Dzmitry Humianiuk
authored
Merge branch 'master' into master
2 parents 13810cb + 08faa6a commit 081b6da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytest_reportportal/rp_logging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def _log(self, level, msg, args,
4444
record = self.makeRecord(self.name, level, fn, lno, msg, args,
4545
exc_info, func, extra, sinfo)
4646

47-
record.attachment = attachment
47+
if not record.attachment:
48+
record.attachment = attachment
4849
self.handle(record)
4950

5051

0 commit comments

Comments
 (0)