[BUGFIX] When I restarted the ComSwiki, I was failing because the
logfile was left open. Therefore the log file could not be accessed.
As a workaround I am finding the log file that is still open and reusing
it. I made the changes in the SwikiBrowser.
I think fileNamed: 'log.txt' should return the existing file. Isn't it?
Umur
-------------------------------------------------------
[self]>>addresses (priv)>>initialization>>initLogFile
| logFile |
logFile _ shelf storage dir fileNamed: 'log.txt'.
"UO 6/23/2003 17:28 sometimes the logFile is not closed when stopping
the server. So just keep using it"
logFile isNil ifTrue: [
logFile _ StandardFileStream allInstances detect: [ :each |
each name = (shelf storage dir pathName, shelf storage
dir pathNameDelimiter asString, 'log.txt')
]
].
logFile setToEnd.
shelf modulesAt: 'logFile' put: logFile.
shelf books do: [:book |
((book setup at: 'logging' ifAbsent: ['none']) = 'site') ifTrue:
[
book modulesAt: 'logFile' put: logFile]]
Privileged/Confidential Information may be contained in this
message. If you are not the addressee indicated in this
message (or responsible for delivery of the message to such
person), you may not copy or deliver this message to
anyone. In such case, you should destroy this message and
kindly notify the sender by reply email. Please advise
immediately if you or your employer do not consent to
Internet email for messages of this kind. Opinions,
conclusions and other information in this message that do
not relate to the official business of the company shall be
understood as neither given nor endorsed by it.
_______________________________________________
Pws mailing list
[EMAIL PROTECTED]
https://mailman.cc.gatech.edu/mailman/listinfo/pws