Compare commits

...
1 Commits
+2 -2
View File
@@ -118,9 +118,9 @@ func (c *BaseClient) Query(queryContent string, queryVariables interface{}, quer
if cacheBaseClient.cache.enabled && jsonData != nil && queryHash != "" {
c.cache.client.Set(queryHash, jsonData)
} else if jsonData == nil {
} else if cacheBaseClient.cache.enabled && jsonData == nil {
cacheBaseClient.Logger.Warn(cacheBaseClient, "Response is empty")
} else if queryHash == "" {
} else if cacheBaseClient.cache.enabled && queryHash == "" {
cacheBaseClient.Logger.Warn(cacheBaseClient, "Query hash is empty")
}