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 303bda9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/internalServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ 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);
return extractFromString<unsigned int>(envString);
} catch (...) {}
std::cout << "Failed, returning default: " << defaultVal << std::endl;

return defaultVal;
}
Expand Down

0 comments on commit 303bda9

Please sign in to comment.