use log over fmt
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -4,6 +4,7 @@ import (
|
|||||||
"bufio"
|
"bufio"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@@ -69,11 +70,11 @@ func NewSystem() {
|
|||||||
|
|
||||||
_, insertErr := adminCollection.InsertOne(context.Background(), admin)
|
_, insertErr := adminCollection.InsertOne(context.Background(), admin)
|
||||||
if insertErr != nil {
|
if insertErr != nil {
|
||||||
fmt.Print("Failed to create admin")
|
log.Printf("Failed to create an admin\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("Successfully created system admin")
|
log.Printf("Successfully created default admin")
|
||||||
fmt.Println("Your admin ID is ", aid)
|
log.Printf("Your default admin ID is %s", aid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File renamed without changes.
Reference in new issue
Block a user