mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-08-07 05:14:57 -04:00
remove Log prefix from configlog functions
This commit is contained in:
91 files changed
+100
-100
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user