remove Log prefix from configlog functions

This commit is contained in:
Willy Kloucek committed 2022-08-22 08:08:18 +02:00
1 parent e58eaabdeb
commit 9f2be9f4f9
91 files changed
+100 -100

No files matched your search

+6 -6
View File
@@ -5,23 +5,23 @@ import (
"os"
)
// LogError logs the error
func LogError(err error) {
// Error logs the error
func Error(err error) {
if err != nil {
fmt.Printf("%v\n", err)
}
}
// LogError logs the error and returns it unchanged
func LogReturnError(err error) error {
// ReturnError logs the error and returns it unchanged
func ReturnError(err error) error {
if err != nil {
fmt.Printf("%v\n", err)
}
return err
}
// LogReturnFatal logs the error and calls os.Exit(1) and returns nil if no error is passed
func LogReturnFatal(err error) error {
// ReturnFatal logs the error and calls os.Exit(1) and returns nil if no error is passed
func ReturnFatal(err error) error {
if err != nil {
fmt.Printf("%v\n", err)
os.Exit(1)