Skip to content

Commit

Permalink
Merge pull request pharo-project#5484 from tesonep/5481-Metacello-log…
Browse files Browse the repository at this point in the history
…s-now-prints-lots-of-new-lines

5481-Metacello-logs-now-prints-lots-of-new-lines
  • Loading branch information
tesonep committed Jan 14, 2020
2 parents 81c6a43 + bd4aad0 commit 763a178
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/System-Support/SmalltalkImage.class.st
Expand Up @@ -1079,17 +1079,11 @@ SmalltalkImage >> logStdOutDuring: aBlock [
"install the line end conversion and force initialize the converter"
stderr := ZnNewLineWriterStream
on: (ZnCharacterWriteStream on: Stdio stdout encoding: 'utf8').

"reset coloring"
stderr
nextPut: Character escape;
nextPutAll: '[0m'.
"rund the loggin block"

[aBlock value: stderr.]
on: Error do: [ "If the block fails we don't do nothing. This can lead to recursive errors" ].

stderr flush; close.
stderr flush.
]

{ #category : #'memory space' }
Expand Down
5 changes: 4 additions & 1 deletion src/UIManager/CommandLineUIManager.class.st
Expand Up @@ -391,7 +391,10 @@ CommandLineUIManager >> stdout [
CommandLineUIManager >> systemNotificationDefaultAction: aNotification [

Smalltalk logStdOutDuring: [:logger |
logger cr; nextPutAll: aNotification class name, ': ', aNotification messageText; cr ].
logger nextPutAll: aNotification class name;
nextPutAll: ': ';
nextPutAll: aNotification messageText;
cr ].

aNotification resume.

Expand Down

0 comments on commit 763a178

Please sign in to comment.