Skip to content

Commit

Permalink
Test commit, will be rewritten post testing
Browse files Browse the repository at this point in the history
  • Loading branch information
maneeshpm committed Jan 8, 2022
1 parent ecb1973 commit e2998b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/internalServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,13 @@ unsigned parseIllustration(const std::string& s)

// Returns the value of env var `name` if found, otherwise returns defaultVal
unsigned int getCacheLength(const char* name, unsigned int defaultVal) {
std::cout << "retrieving cache size" << endl;
try {
auto envString = std::getenv(name);
std::cout << "Found value: " << extractFromString<unsigned int>(envString) << std::endl;
return extractFromString<unsigned int>(envString);
} catch (...) {}
std::cout << "Failed, returning default: " << defaultVal << std::endl;

return defaultVal;
}
Expand Down

0 comments on commit e2998b0

Please sign in to comment.