소스 검색

write error to log

Darien Raymond 7 년 전
부모
커밋
76a616ebff
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()
 }