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 launcherAsService = false
appVersion = project.version appVersion = project.version
winConsole = false
winMenu = true // Creates start menu entry winMenu = true // Creates start menu entry
winShortcut = true // Creates desktop shortcut winShortcut = true // Creates desktop shortcut
winShortcutPrompt = true // Lets user choose whether to create shortcuts winShortcutPrompt = true // Lets user choose whether to create shortcuts

View File

@ -272,7 +272,7 @@ public class EndpointConfiguration {
if (!bookAndHtmlFormatsInstalled) { if (!bookAndHtmlFormatsInstalled) {
if(groupsToRemove == null) { if(groupsToRemove == null) {
groupsToRemove = new ArrayList<String>(); groupsToRemove = new ArrayList<>();
} }
groupsToRemove.add("Calibre"); 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.EncodedResource;
import org.springframework.core.io.support.PropertySourceFactory; import org.springframework.core.io.support.PropertySourceFactory;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class YamlPropertySourceFactory implements PropertySourceFactory { public class YamlPropertySourceFactory implements PropertySourceFactory {
@Override @Override
@ -20,15 +18,6 @@ public class YamlPropertySourceFactory implements PropertySourceFactory {
factory.setResources(encodedResource.getResource()); factory.setResources(encodedResource.getResource());
Properties properties = factory.getObject(); 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( return new PropertiesPropertySource(
encodedResource.getResource().getFilename(), properties); encodedResource.getResource().getFilename(), properties);
} }

View File

@ -50,11 +50,11 @@ public class ApplicationProperties {
public PropertySource<?> dynamicYamlPropertySource(ConfigurableEnvironment environment) public PropertySource<?> dynamicYamlPropertySource(ConfigurableEnvironment environment)
throws IOException { throws IOException {
String configPath = InstallationPathConfig.getSettingsPath(); 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); File file = new File(configPath);
if (!file.exists()) { 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); Resource resource = new FileSystemResource(configPath);
@ -67,7 +67,7 @@ public class ApplicationProperties {
new YamlPropertySourceFactory().createPropertySource(null, encodedResource); new YamlPropertySourceFactory().createPropertySource(null, encodedResource);
environment.getPropertySources().addFirst(propertySource); environment.getPropertySources().addFirst(propertySource);
log.info("Loaded properties: " + propertySource.getSource()); log.debug("Loaded properties: " + propertySource.getSource());
return propertySource; return propertySource;
} }

View File

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