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

开发者体验:access log误配置,会造成启动失败,且提示不友好 #1004

Open
tianxiaoliang opened this issue Aug 31, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tianxiaoliang
Copy link
Member

tianxiaoliang commented Aug 31, 2021

	if initiator.LoggerOptions == nil || len(initiator.LoggerOptions.AccessLogFile) == 0 {
		openlog.Info("lager.yaml non exist, skip init")
		return
	}
  1. 该日志应该为info级别。不易找到这样的错误信息

  2. 另外就是提示不具体,我这里有lager.yaml文件,只是没有配置配置项,需要分开进行提示,2个if语句

@tianxiaoliang tianxiaoliang added the bug Something isn't working label Aug 31, 2021
@tianxiaoliang tianxiaoliang self-assigned this Aug 31, 2021
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

No branches or pull requests

1 participant