Skip to content

Commit 203b10c

Browse files
committed
RWS: Do not add blank lines between log messages
1 parent c87fea7 commit 203b10c

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
@@ -233,7 +233,10 @@ def format(self, record):
233233
if record.exc_info:
234234
result += "\n\n%s" % self.formatException(record.exc_info).strip()
235235

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

238241

239242
# Create a global reference to the root logger.

0 commit comments

Comments
 (0)