Explorar o código

write error to log

Darien Raymond %!s(int64=7) %!d(string=hai) anos
pai
achega
76a616ebff
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      functions.go

+ 1 - 1
functions.go

@@ -16,5 +16,5 @@ func CreateObject(v *Instance, config interface{}) (interface{}, error) {
 }
 
 func PrintDeprecatedFeatureWarning(feature string) {
-	newError("You are using a deprecated feature: " + feature + ". Please update your config file with latest configuration format, or update your client software.")
+	newError("You are using a deprecated feature: " + feature + ". Please update your config file with latest configuration format, or update your client software.").WriteToLog()
 }