diff --git a/internal/apps/log_writer.go b/internal/apps/log_writer.go index a09bf00..02ff473 100644 --- a/internal/apps/log_writer.go +++ b/internal/apps/log_writer.go @@ -89,7 +89,10 @@ func (this *LogWriter) Write(message string) { } } - this.c <- message + select { + case this.c <- message: + default: + } } func (this *LogWriter) Close() {