|
@@ -55,7 +55,10 @@ func (this *fileLogWriter) Log(log LogEntry) {
|
|
|
|
|
|
|
|
func (this *fileLogWriter) run() {
|
|
func (this *fileLogWriter) run() {
|
|
|
for {
|
|
for {
|
|
|
- entry := <-this.queue
|
|
|
|
|
|
|
+ entry, open := <-this.queue
|
|
|
|
|
+ if !open {
|
|
|
|
|
+ break
|
|
|
|
|
+ }
|
|
|
this.logger.Print(entry.String() + platform.LineSeparator())
|
|
this.logger.Print(entry.String() + platform.LineSeparator())
|
|
|
entry.Release()
|
|
entry.Release()
|
|
|
entry = nil
|
|
entry = nil
|