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

Can you add a debug mode? #30

Open
junmaqiang opened this issue Mar 23, 2023 · 1 comment
Open

Can you add a debug mode? #30

junmaqiang opened this issue Mar 23, 2023 · 1 comment

Comments

@junmaqiang
Copy link

Hope to add a mode so that all upgrades can be seen. Now it's a black box, no way to track it

	_, err := selfupdate.Manage(config) 
	if err != nil {
		fmt.Println("ERROR: ", err)
		return
	}

@Bluebugs
Copy link

selfupdate.Manage is largely asynchronous. That's why we provide logging interface:
selfupdate.LogError, selfupdate.LogInfo and selfupdate.LogDebug . You just need to set the logging function you want to it and you are good to go. Is that good enough for your use case?

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

2 participants