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

Enabling debug logs for Hajimari #140

Open
mihirsamdarshi opened this issue Jun 13, 2023 · 0 comments
Open

Enabling debug logs for Hajimari #140

mihirsamdarshi opened this issue Jun 13, 2023 · 0 comments

Comments

@mihirsamdarshi
Copy link

Hi, I am wondering if there is a way to enable debug logs in Hajimari?

I am running into a problem (below), and I am trying to figure out where the issue is. While reading through the codebase, I can see that there are various logger.Debug statements, but I can't figure out how to surface those, since it seems like logrus doesn't have environment variable based logging.

time="2023-06-13T02:19:31Z" level=info msg="Using config file: /config/config.yaml" _source="hajimari/main.go:31"
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/toboshii/hajimari/internal/kube/wrappers.(*IngressWrapper).tryGetTLSHost(...)
	/build/internal/kube/wrappers/ingress.go:124
github.com/toboshii/hajimari/internal/kube/wrappers.(*IngressWrapper).GetURL(0xc00049ee60)
	/build/internal/kube/wrappers/ingress.go:103 +0x24f
github.com/toboshii/hajimari/internal/hajimari/ingressapps.convertIngressesToHajimariApps({0xc000307400?, 0x8, 0x5?}, {{0x0, 0x0}, 0x1, 0x1, {0x1aaf4b8, 0xc000342c00}})
	/build/internal/hajimari/ingressapps/apps.go:91 +0x705
github.com/toboshii/hajimari/internal/hajimari/ingressapps.(*List).Populate(0xc00049fba0, {0xc00039f300?, 0xc0001299d8?, 0x177ee2f?})
	/build/internal/hajimari/ingressapps/apps.go:53 +0x2b6
github.com/toboshii/hajimari/internal/services.getIngressApps()
	/build/internal/services/app.go:76 +0x305
github.com/toboshii/hajimari/internal/services.NewAppService(0xc00039ee80)
	/build/internal/services/app.go:38 +0x59
github.com/toboshii/hajimari/internal/handlers.NewHandler()
	/build/internal/handlers/handler.go:51 +0xad9
main.main()
	/build/cmd/hajimari/main.go:50 +0x1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant