File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ def format(self, record: LogRecord) -> str:
209
209
"""
210
210
text = super ().format (record )
211
211
lines = text .splitlines ()
212
- return self .terminator .join (lines ) + self . terminator
212
+ return self .terminator .join (lines )
213
213
214
214
def emit (self , record : LogRecord ) -> None :
215
215
"""Send a message to the console.
@@ -561,7 +561,7 @@ def exception(self, err: Exception) -> None:
561
561
)
562
562
else :
563
563
lines = [str (err )] + traceback .format_exception (err )
564
- lines = str (err ) + "\n " .join (lines )
564
+ lines = str (err ) + "" .join (lines )
565
565
# some of the returned strings from format_exception already have newlines in them,
566
566
# so we can't add the indent in the above line - needs to be done separately
567
567
lines = lines .replace ("\n " , "\n " )
You can’t perform that action at this time.
0 commit comments