#BUGFIX by stefan
authorStefan Vogel <sv@exept.de>
Thu, 28 Jun 2018 17:35:50 +0200
changeset 23151 0f2ee2d56903
parent 23150 047b878c8123
child 23152 f14eea04dd92
#BUGFIX by stefan class: UnixSyslogInterface class changed: #basicLog:severity:facility:originator:attachment: fix logging for empty strings
UnixSyslogInterface.st
--- a/UnixSyslogInterface.st	Thu Jun 28 15:31:15 2018 +0200
+++ b/UnixSyslogInterface.st	Thu Jun 28 17:35:50 2018 +0200
@@ -360,10 +360,11 @@
 
     priority := PriorityMapping at:severity ifAbsent:5.
     messageAsSent := 
-            '%1 %2: %3'
+            '%1%2%3: %4'
                 bindWith:(facility ? 'STX')
 "/                with:'' "/ severity name
 "/                with:'' "/ (Timestamp now printStringFormat:(self timestampFormat))
+                with:(originator notEmptyOrNil ifTrue:'+' ifFalse:[''])
                 with:originator
                 with:message.
 
@@ -381,6 +382,7 @@
     "
 
     "Created: / 28-06-2018 / 11:08:04 / Stefan Vogel"
+    "Modified: / 28-06-2018 / 15:01:25 / Stefan Vogel"
 ! !
 
 !UnixSyslogInterface class methodsFor:'queries'!