Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fetch error handling #47

Merged
merged 1 commit into from
Sep 25, 2019
Merged

Fix fetch error handling #47

merged 1 commit into from
Sep 25, 2019

Conversation

k1LoW
Copy link
Owner

@k1LoW k1LoW commented Sep 25, 2019

2019-09-25T10:32:39.957+0900    ERROR    Fetch error    {"host": "example.com", "path": "/var/log/syslog*", "error": "sshkeys: Invalid Passphrase"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x4d9bc9a]

goroutine 69 [running]:
github.com/k1LoW/harvest/collector.(*Collector).Fetch(0x0, 0xc0000da960, 0xc0000d8060, 0xc0000d8080, 0x0, 0x0, 0x0)
    /Users/k1low/src/github.com/k1LoW/harvest/collector/collector.go:93 +0x5a
github.com/k1LoW/harvest/cmd/hrv/cmd.glob..func5.1(0xc000452060, 0xc0005a0800, 0x5377a60, 0xc000430300, 0xc00027d2c0, 0xc0004c57a0, 0xc0000d8060, 0xc0000d8080, 0xc000444b40)
    /Users/k1low/src/github.com/k1LoW/harvest/cmd/hrv/cmd/fetch.go:128 +0x10e
created by github.com/k1LoW/harvest/cmd/hrv/cmd.glob..func5
    /Users/k1low/src/github.com/k1LoW/harvest/cmd/hrv/cmd/fetch.go:121 +0x74b

@k1LoW k1LoW added the bug Something isn't working label Sep 25, 2019
@k1LoW k1LoW self-assigned this Sep 25, 2019
@k1LoW k1LoW merged commit 2e7a332 into master Sep 25, 2019
@k1LoW k1LoW deleted the fix-fetch-error-handle branch September 25, 2019 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant