log bing err
This commit is contained in:
@@ -11,6 +11,7 @@ package search
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
@@ -27,6 +28,8 @@ var subscriptionKey string
|
|||||||
func init() {
|
func init() {
|
||||||
if os.Getenv("bing") != "" {
|
if os.Getenv("bing") != "" {
|
||||||
subscriptionKey = os.Getenv("bing")
|
subscriptionKey = os.Getenv("bing")
|
||||||
|
} else {
|
||||||
|
log.Println("bing key not found")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user