mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-18 18:06:45 +00:00
Bump to 1.0
This commit is contained in:
parent
6793086c22
commit
d593ba2d0b
8
main.go
8
main.go
@ -17,10 +17,9 @@ import (
|
|||||||
var app = cli.App {
|
var app = cli.App {
|
||||||
Name: "od-database-crawler",
|
Name: "od-database-crawler",
|
||||||
Usage: "OD-Database Go crawler",
|
Usage: "OD-Database Go crawler",
|
||||||
Version: "0.2",
|
Version: "1.0",
|
||||||
BashComplete: cli.DefaultAppComplete,
|
BashComplete: cli.DefaultAppComplete,
|
||||||
Writer: os.Stdout,
|
Writer: os.Stdout,
|
||||||
Compiled: buildDate,
|
|
||||||
Action: cmdBase,
|
Action: cmdBase,
|
||||||
Commands: []cli.Command{
|
Commands: []cli.Command{
|
||||||
{
|
{
|
||||||
@ -146,8 +145,3 @@ func cmdCrawler(clic *cli.Context) error {
|
|||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var buildDate = time.Date(
|
|
||||||
2018, 11, 17,
|
|
||||||
23, 32, 0, 0,
|
|
||||||
time.UTC)
|
|
||||||
|
@ -114,8 +114,9 @@ func uploadChunks(websiteId uint64, f *os.File) error {
|
|||||||
iter, res.Status)
|
iter, res.Status)
|
||||||
}
|
}
|
||||||
|
|
||||||
logrus.Infof("Uploading file list part %d: %s",
|
logrus.WithField("id", websiteId).
|
||||||
iter, res.Status)
|
WithField("part", iter).
|
||||||
|
Infof("Uploading files chunk")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user