Commit 608ffda8 authored by Joerg-Holger Panzer's avatar Joerg-Holger Panzer
Browse files

Extend logging

parent 485dcaa8
Pipeline #266284 failed with stages
in 7 minutes and 21 seconds
......@@ -3,13 +3,17 @@ package main
import (
"time"
"github.com/labstack/gommon/log"
"gitlab.gwdg.de/subugoe/metsimporter/collector/helper"
)
func main() {
helper.IndexAll()
j := helper.IndexAll()
log.Info("Collector found %v METS files to process", j)
for {
// add infinite loop, to prevent docker based autorestart
log.Info("Collector in idle mode", j)
time.Sleep(300 * time.Second)
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment