mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 17:54:07 +01:00
Some UI fixes (#2698)
- fix first log line being dropped if channel was opened - link org and repo on repo logs view - fix decline pipeline status does not update
This commit is contained in:
@@ -79,9 +79,15 @@ func (l *log) Write(ctx context.Context, stepID int64, logEntry *model.LogEntry)
|
||||
l.Lock()
|
||||
s, ok := l.streams[stepID]
|
||||
l.Unlock()
|
||||
|
||||
// auto open the stream if it does not exist
|
||||
if !ok {
|
||||
return l.Open(ctx, stepID)
|
||||
err := l.Open(ctx, stepID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
s.Lock()
|
||||
s.list = append(s.list, logEntry)
|
||||
for sub := range s.subs {
|
||||
|
||||
Reference in New Issue
Block a user