Skip to content

Commit 9091a29

Browse files
committed
RWS: Do not add blank lines between log messages
1 parent 0f920a0 commit 9091a29

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cmsranking/Logger.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,10 @@ def format(self, record):
234234
if record.exc_info:
235235
result += "\n\n%s" % self.formatException(record.exc_info).strip()
236236

237-
return result.replace("\n", "\n ") + '\n'
237+
if result[-1] == '\n':
238+
result = result[:-1]
239+
240+
return result.replace("\n", "\n ")
238241

239242

240243
# Create a global reference to the root logger.

0 commit comments

Comments
 (0)