remove logs

This commit is contained in:
Anthony Stirling 2025-01-04 13:12:34 +00:00
parent cf03bdc17b
commit 0136c25e1d
5 changed files with 13 additions and 23 deletions

View File

@ -124,6 +124,7 @@ jpackage {
launcherAsService = false
appVersion = project.version
winConsole = false
winMenu = true // Creates start menu entry
winShortcut = true // Creates desktop shortcut
winShortcutPrompt = true // Lets user choose whether to create shortcuts

View File

@ -272,7 +272,7 @@ public class EndpointConfiguration {
if (!bookAndHtmlFormatsInstalled) {
if(groupsToRemove == null) {
groupsToRemove = new ArrayList<String>();
groupsToRemove = new ArrayList<>();
}
groupsToRemove.add("Calibre");
}

View File

@ -9,8 +9,6 @@ import org.springframework.core.env.PropertySource;
import org.springframework.core.io.support.EncodedResource;
import org.springframework.core.io.support.PropertySourceFactory;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class YamlPropertySourceFactory implements PropertySourceFactory {
@Override
@ -20,15 +18,6 @@ public class YamlPropertySourceFactory implements PropertySourceFactory {
factory.setResources(encodedResource.getResource());
Properties properties = factory.getObject();
// Add debug logging
if (properties != null) {
log.info("Loaded properties count: {}", properties.size());
properties.forEach((key, value) ->
log.info("Property loaded - Key: {}, Value: {}", key, value));
} else {
log.warn("No properties loaded from resource");
}
return new PropertiesPropertySource(
encodedResource.getResource().getFilename(), properties);
}

View File

@ -50,11 +50,11 @@ public class ApplicationProperties {
public PropertySource<?> dynamicYamlPropertySource(ConfigurableEnvironment environment)
throws IOException {
String configPath = InstallationPathConfig.getSettingsPath();
log.info("Attempting to load settings from: " + configPath);
log.debug("Attempting to load settings from: " + configPath);
File file = new File(configPath);
if (!file.exists()) {
log.info("Warning: Settings file does not exist at: " + configPath);
log.error("Warning: Settings file does not exist at: " + configPath);
}
Resource resource = new FileSystemResource(configPath);
@ -67,7 +67,7 @@ public class ApplicationProperties {
new YamlPropertySourceFactory().createPropertySource(null, encodedResource);
environment.getPropertySources().addFirst(propertySource);
log.info("Loaded properties: " + propertySource.getSource());
log.debug("Loaded properties: " + propertySource.getSource());
return propertySource;
}

View File

@ -106,14 +106,14 @@ AutomaticallyGenerated:
processExecutor:
sessionLimit: # Process executor instances limits
libreOfficeSessionLimit: 100
pdfToHtmlSessionLimit: 100
qpdfSessionLimit: 400
tesseractSessionLimit: 100
pythonOpenCvSessionLimit: 800
weasyPrintSessionLimit: 1600
installAppSessionLimit: 100
calibreSessionLimit: 100
libreOfficeSessionLimit: 1
pdfToHtmlSessionLimit: 1
qpdfSessionLimit: 4
tesseractSessionLimit: 1
pythonOpenCvSessionLimit: 8
weasyPrintSessionLimit: 16
installAppSessionLimit: 1
calibreSessionLimit: 1
timeoutMinutes: # Process executor timeout in minutes
libreOfficetimeoutMinutes: 30
pdfToHtmltimeoutMinutes: 20