PiwigoDirectoryUploader/cmd/DirectoriesToAlbums/main.go

24 lines
433 B
Go
Raw Normal View History

2019-02-23 21:57:54 +01:00
package main
import (
2019-03-02 00:21:01 +01:00
"git.haefelfinger.net/piwigo/DirectoriesToAlbums/internal/app"
2019-02-23 21:57:54 +01:00
"github.com/sirupsen/logrus"
2019-02-24 23:11:52 +01:00
"github.com/vharitonsky/iniflags"
2019-02-23 21:57:54 +01:00
"os"
)
func main() {
2019-02-24 23:11:52 +01:00
iniflags.Parse()
2019-02-23 21:57:54 +01:00
InitializeLog()
2019-02-24 23:11:52 +01:00
app.Run()
2019-02-23 21:57:54 +01:00
}
func InitializeLog() {
//TODO: make log configurable to file instead of console
logrus.SetLevel(logrus.DebugLevel)
logrus.SetOutput(os.Stdout)
logrus.Infoln("Starting Piwigo directories to albums...")
2019-02-23 22:02:12 +01:00
}