log bing err

This commit is contained in:
Sakurasan
2024-06-04 01:04:06 +08:00
parent afbc8e008b
commit b101da7677

View File

@@ -11,6 +11,7 @@ package search
import (
"fmt"
"io"
"log"
"net/http"
"net/url"
"os"
@@ -27,6 +28,8 @@ var subscriptionKey string
func init() {
if os.Getenv("bing") != "" {
subscriptionKey = os.Getenv("bing")
} else {
log.Println("bing key not found")
}
}