Browse Source

Cache miss messages have been made dark gray

master
Michael Uleysky 3 weeks ago
parent
commit
528a9ab801
  1. 3
      src/copcat.cpp
  2. 3
      src/zarr.cpp

3
src/copcat.cpp

@ -1,6 +1,7 @@
#define MICHLIB_NOSOURCE
#include "copcat.h"
#include "GPL.h"
#include "conscolors.h"
#include "mirrorfuncs.h"
const MString CopernicusCatalog::caturl = "https://stac.marine.copernicus.eu/metadata/catalog.stac.json";
@ -205,7 +206,7 @@ RetVal<Json::Value> CopernicusCatalog::GetJSON(const MString& url) const
content = std::move(val);
else
{
michlib::message(url + " not found in cache, downloading");
michlib::message(F(C::BBLACK), url, " not found in cache, downloading", C());
auto [out, res] = GetUrl(chandle, url);
if(res != CURLE_OK) return Error(pref, MString("can't download JSON: ") + chandle.Err());
cache->Put(url, out, 3600);

3
src/zarr.cpp

@ -1,5 +1,6 @@
#define MICHLIB_NOSOURCE
#include "zarr.h"
#include "conscolors.h"
#include "copcat.h"
#include <blosc.h>
@ -171,7 +172,7 @@ Error ZarrFunctions::GetChunk(const MString& var, const std::vector<size_t>& chu
if(!suc)
{
michlib::message(str + " not found in cache, downloading");
michlib::message(F(C::BBLACK), str, " not found in cache, downloading", C());
CURLRAII myhandle; // TODO: remove this workaround of unknown bug
if(proxyurl.Exist()) curl_easy_setopt(myhandle, CURLOPT_PROXY, proxyurl.Buf());
//auto [out, res] = GetUrl(chandle, str);

Loading…
Cancel
Save