mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
fix: log correct error on drpc connection close error (#17265)
This commit is contained in:
@ -907,7 +907,7 @@ func (a *agent) run() (retErr error) {
|
||||
defer func() {
|
||||
cErr := aAPI.DRPCConn().Close()
|
||||
if cErr != nil {
|
||||
a.logger.Debug(a.hardCtx, "error closing drpc connection", slog.Error(err))
|
||||
a.logger.Debug(a.hardCtx, "error closing drpc connection", slog.Error(cErr))
|
||||
}
|
||||
}()
|
||||
|
||||
|
Reference in New Issue
Block a user