MCPcopy Index your code
hub / github.com/questdb/questdb / getProperty

Method getProperty

core/src/main/java/io/questdb/log/LogFactory.java:541–552  ·  view source on GitHub ↗
(final Properties properties, String key)

Source from the content-addressed store, hash-verified

539 }
540
541 private static String getProperty(final Properties properties, String key) {
542 if (envEnabled) {
543 final String envKey = "QDB_LOG_" + key.replace('.', '_').toUpperCase();
544 final String envValue = System.getenv(envKey);
545 if (envValue == null) {
546 return properties.getProperty(key);
547 }
548 System.err.println(" Using env: " + envKey + "=" + envValue);
549 return envValue;
550 }
551 return properties.getProperty(key);
552 }
553
554 private static boolean isForcedDebug() {
555 return System.getProperty(DEBUG_TRIGGER) != null || System.getenv().containsKey(DEBUG_TRIGGER_ENV);

Callers 15

createWriterMethod · 0.95
configureMethod · 0.95
getJavaVersionMethod · 0.80
withCustomPropertyMethod · 0.80
setUpMethod · 0.80
flushDiskCacheMethod · 0.80
FuzzConfigMethod · 0.80
setPropertyMethod · 0.80
testMemoryStretchMethod · 0.80
BootstrapMethod · 0.80

Calls 3

toUpperCaseMethod · 0.80
replaceMethod · 0.45
printlnMethod · 0.45

Tested by 8

getJavaVersionMethod · 0.64
withCustomPropertyMethod · 0.64
setUpMethod · 0.64
flushDiskCacheMethod · 0.64
FuzzConfigMethod · 0.64
setPropertyMethod · 0.64
testMemoryStretchMethod · 0.64