Skip to content
Snippets Groups Projects
Commit 1a31e98a authored by Odin K. Henriksen's avatar Odin K. Henriksen
Browse files

Added infologging on startup and initializing

parent 9a7da331
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ import ( ...@@ -10,6 +10,7 @@ import (
// Internal // Internal
"dcsg2900-threattotal/api" "dcsg2900-threattotal/api"
"dcsg2900-threattotal/auth" "dcsg2900-threattotal/auth"
logging "dcsg2900-threattotal/logs"
"dcsg2900-threattotal/storage" "dcsg2900-threattotal/storage"
"dcsg2900-threattotal/utils" "dcsg2900-threattotal/utils"
...@@ -22,6 +23,7 @@ import ( ...@@ -22,6 +23,7 @@ import (
// Initialize global variables // Initialize global variables
func init() { func init() {
logging.Loginfo("Initializing the application")
var err error var err error
// Setting global varaibles in the utils package // Setting global varaibles in the utils package
...@@ -67,7 +69,7 @@ func init() { ...@@ -67,7 +69,7 @@ func init() {
} }
func main() { func main() {
logging.Loginfo("Starting the API")
r := gin.Default() r := gin.Default()
r.Use(cors.Default()) r.Use(cors.Default())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment