diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2025-06-14 00:41:47 +0200 | 
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2025-06-14 00:41:47 +0200 | 
| commit | 99313edd6f3621b21c38dc2323f19480ea64617f (patch) | |
| tree | 2fdfd8f052a39888f448b2d265e3b4b729914b77 | |
| parent | 4f14515613bd491dd0627398aa8fc3e3aef07945 (diff) | |
Unify usage of logging functions
| -rw-r--r-- | src/http.go | 2 | ||||
| -rw-r--r-- | src/i18n.go | 2 | ||||
| -rw-r--r-- | src/try/try.go | 2 | 
3 files changed, 3 insertions, 3 deletions
| diff --git a/src/http.go b/src/http.go index a5897b4..298e6be 100644 --- a/src/http.go +++ b/src/http.go @@ -179,7 +179,7 @@ func throwError(status int, err error, w http.ResponseWriter, r *http.Request) {  	w.WriteHeader(status)  	go func() {  		if err := email.ServerError(err); err != nil { -			log.Print(err) +			log.Println(err)  		}  	}()  	errorTmpl.Execute(w, struct { diff --git a/src/i18n.go b/src/i18n.go index 726a75c..cb54e28 100644 --- a/src/i18n.go +++ b/src/i18n.go @@ -261,7 +261,7 @@ func (p Printer) M(val any) string {  	default:  		go func() {  			if err := email.ServerError(badMType{"TODO"}); err != nil { -				log.Print(err) +				log.Println(err)  			}  		}()  		/* Hopefully this never happens */ diff --git a/src/try/try.go b/src/try/try.go index 24cb95c..d2ea27e 100644 --- a/src/try/try.go +++ b/src/try/try.go @@ -8,8 +8,8 @@ import (  func Try(e error) {  	if e != nil { -		log.Fatal(e)  		atexit.Exec() +		log.Fatalln(e)  	}  } |