Problem: task log is no longer searchable
Issue
It used to be that I could open the task log and ctrl+f in Firefox to find the line matching what I am looking for. It would highlight the match. The browser search no longer finds anything outside of the visible viewport.
Impact
Web-Frontend (what users interact with)
Installation method
Package
Database
No response
Browser
No response
Semaphore Version
2.15.0
Ansible Version
Logs & errors
No response
Manual installation - system information
No response
Configuration
No response
Additional information
No response
Same for semaphore-2.16.18-1.x86_64
Can I suggest this be bumped? Not being able to find anything in the logs makes using semaphore much less valuable!
Workaround: go to raw logs view and search there.
Edit: this will not work. There are no raw logs for a running task.
Workaround 2:
Visit /api/project/PROJECT_ID/tasks/TASK_ID/raw_output and refresh to get newest output. Then Ctrl+F will work.
raw_output is also not a good workaround, because there are no timestamps in that log.
@fiftin Please could the log files be searchable and not just viewable! Not being able to search in an active log during a run is very painful!
raw_output is also not a good workaround, because there are no timestamps in that log.
Can adding timestamps to raw output be workaround the problem?
I think the user expects ctrl+f to search on the page. I think that should work!
But as a workaround timestamped raw logs would work, but:
- there is no raw logs link during an active run
- semaphore is adjusting the timezone for logs based on the client (i.e. not UTC like on the server)
@macau23 virtual scrolling used for task log viewing because huge output can't be rendered on the page without lags. So, standard search doesn't work. There are 2 options:
- raw log
- custom search - we will implement it but I don't know when