Add a logger prefix
This commit is contained in:
parent
84a1610286
commit
ef8b5e7645
3 changed files with 6 additions and 0 deletions
|
@ -37,6 +37,8 @@ func main() {
|
|||
flag.StringVar(&SubmissionDir, "submission", "./submissions/", "Base directory where save submissions")
|
||||
flag.Parse()
|
||||
|
||||
log.SetPrefix("[frontend] ")
|
||||
|
||||
log.Println("Creating submission directory...")
|
||||
if _, err := os.Stat(SubmissionDir); os.IsNotExist(err) {
|
||||
if err := os.MkdirAll(SubmissionDir, 0777); err != nil {
|
||||
|
|
Reference in a new issue