log msg
This commit is contained in:
2
main.go
2
main.go
@@ -36,6 +36,7 @@ func main() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
log.SetOutput(logfileWriter)
|
log.SetOutput(logfileWriter)
|
||||||
|
log.Printf("CCSecrets starting execution. Built on %s from sha1 %s\n", buildTime, sha1ver)
|
||||||
|
|
||||||
// Initiate connection to sqlite and make sure our schema is up to date
|
// Initiate connection to sqlite and make sure our schema is up to date
|
||||||
models.ConnectDatabase()
|
models.ConnectDatabase()
|
||||||
@@ -58,7 +59,6 @@ func main() {
|
|||||||
|
|
||||||
// TODO - think of a better default landing page
|
// TODO - think of a better default landing page
|
||||||
router.GET("/", func(c *gin.Context) {
|
router.GET("/", func(c *gin.Context) {
|
||||||
//time.Sleep(10 * time.Second)
|
|
||||||
c.String(http.StatusOK, fmt.Sprintf("Built on %s from sha1 %s\n", buildTime, sha1ver))
|
c.String(http.StatusOK, fmt.Sprintf("Built on %s from sha1 %s\n", buildTime, sha1ver))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user