(line string)
| 541 | } |
| 542 | |
| 543 | func parseLogTime(line string) (time.Time, error) { |
| 544 | if len(line) < 15 { |
| 545 | return time.Time{}, nil |
| 546 | } |
| 547 | timeStr := line[:15] |
| 548 | parsedTime, err := time.ParseInLocation("Jan 2 15:04:05", timeStr, time.Local) |
| 549 | if err != nil { |
| 550 | return time.Time{}, nil |
| 551 | } |
| 552 | return parsedTime.AddDate(time.Now().Year(), 0, 0), nil |
| 553 | } |
| 554 | |
| 555 | func getNodeName(agentInfo *dto.AgentInfo) string { |
| 556 | var nodeName string |
no outgoing calls
no test coverage detected