로그 추가

This commit is contained in:
2025-09-09 23:47:33 +09:00
parent a434b9bf84
commit 54eab23eb2

View File

@ -144,12 +144,13 @@ func (c *Client) sendLoop(ctx context.Context) {
if err != nil {
if netoperr, ok := err.(*net.OpError); ok && netoperr.Op == "dial" {
// 접속 안됨. 파일로 남기고 끝
logger.Println("log send bulk failed :", err)
logger.Println("log send bulk failed. no retry :", err)
for _, e := range sending {
logger.Println(string(e))
}
} else {
// 재시도
logger.Println("log send bulk failed. retry :", err)
failChan <- sending
}
return