Allow os.Mkdir errors

This commit is contained in:
Eduard Urbach 2019-07-20 00:24:40 +09:00 committed by GitHub
parent 3dc4914970
commit c281bc520b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,11 +41,7 @@ func startJobs() {
// Log paths // Log paths
logsPath := path.Join(arn.Root, "logs") logsPath := path.Join(arn.Root, "logs")
jobLogsPath := path.Join(arn.Root, "logs", "jobs") jobLogsPath := path.Join(arn.Root, "logs", "jobs")
err := os.Mkdir(jobLogsPath, 0777) _ = os.Mkdir(jobLogsPath, 0777)
if err != nil {
panic(err)
}
// Scheduler log // Scheduler log
mainLog := log.New() mainLog := log.New()