forked from vieter-v/vieter
				
			feat(cron): added debug log on build_repo failure
							parent
							
								
									c5161cac37
								
							
						
					
					
						commit
						03318586ed
					
				| 
						 | 
					@ -77,7 +77,10 @@ fn (mut d Daemon) run_build(build_index int, sb ScheduledBuild) {
 | 
				
			||||||
	// 0 means success, 1 means failure
 | 
						// 0 means success, 1 means failure
 | 
				
			||||||
	mut status := 0
 | 
						mut status := 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	build.build_repo(d.address, d.api_key, d.builder_images.last(), &sb.repo) or { status = 1 }
 | 
						build.build_repo(d.address, d.api_key, d.builder_images.last(), &sb.repo) or {
 | 
				
			||||||
 | 
							d.ldebug('build_repo error: $err.msg()')
 | 
				
			||||||
 | 
							status = 1
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if status == 0 {
 | 
						if status == 0 {
 | 
				
			||||||
		d.linfo('finished build: $sb.repo.url $sb.repo.branch')
 | 
							d.linfo('finished build: $sb.repo.url $sb.repo.branch')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue