mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: rename startup logs to agent logs (#8649)
* chore: rename startup logs to agent logs This also adds a `source` property to every agent log. It should allow us to group logs and display them nicer in the UI as they stream in. * Fix migration order * Fix naming * Rename the frontend * Fix tests * Fix down migration * Match enums for workspace agent logs * Fix inserting log source * Fix migration order * Fix logs tests * Fix psql insert
This commit is contained in:
@ -49,10 +49,10 @@ func IsQueryCanceledError(err error) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func IsStartupLogsLimitError(err error) bool {
|
||||
func IsWorkspaceAgentLogsLimitError(err error) bool {
|
||||
var pqErr *pq.Error
|
||||
if errors.As(err, &pqErr) {
|
||||
return pqErr.Constraint == "max_startup_logs_length" && pqErr.Table == "workspace_agents"
|
||||
return pqErr.Constraint == "max_logs_length" && pqErr.Table == "workspace_agents"
|
||||
}
|
||||
|
||||
return false
|
||||
|
Reference in New Issue
Block a user