File tree Expand file tree Collapse file tree 5 files changed +23
-4
lines changed
dsf-bpe-process-api-v1-impl/src/main/java/dev/dsf/bpe/v1/plugin
dsf-bpe-process-api-v2-impl/src/main/java/dev/dsf/bpe/v2/plugin
dsf-bpe-process-api/src/main/java/dev/dsf/bpe/api/plugin
dsf-bpe-server-jetty/docker/conf
dsf-bpe-server/src/main/java/dev/dsf/bpe/plugin Expand file tree Collapse file tree 5 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -259,6 +259,12 @@ protected List<String> getDefinitionProcessModels()
259
259
return processPluginDefinition .getProcessModels ();
260
260
}
261
261
262
+ @ Override
263
+ public String getPluginDefinitionPackageName ()
264
+ {
265
+ return processPluginDefinition .getClass ().getPackageName ();
266
+ }
267
+
262
268
@ Override
263
269
public PrimitiveValue <?> createFhirTaskVariable (String taskJson )
264
270
{
Original file line number Diff line number Diff line change @@ -319,6 +319,12 @@ protected List<String> getDefinitionProcessModels()
319
319
return processPluginDefinition .getProcessModels ();
320
320
}
321
321
322
+ @ Override
323
+ public String getPluginDefinitionPackageName ()
324
+ {
325
+ return processPluginDefinition .getClass ().getPackageName ();
326
+ }
327
+
322
328
@ Override
323
329
public PrimitiveValue <?> createFhirTaskVariable (String taskJson )
324
330
{
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ public interface ProcessPlugin
43
43
44
44
List <BpmnFileAndModel > getProcessModels ();
45
45
46
+ String getPluginDefinitionPackageName ();
47
+
46
48
ProcessPluginDeploymentListener getProcessPluginDeploymentListener ();
47
49
48
50
Class <?> getDefaultUserTaskListenerClass ();
Original file line number Diff line number Diff line change 15
15
</Appenders >
16
16
<Loggers >
17
17
<Logger name =" dev.dsf" level =" DEBUG" />
18
- <Logger name =" de.netzwerk_universitaetsmedizin" level =" DEBUG" />
19
- <Logger name =" de.medizininformatik_initiative" level =" DEBUG" />
20
- <Logger name =" de.dkfz.nct" level =" DEBUG" />
21
18
<Logger name =" org.eclipse.jetty" level =" INFO" />
22
19
<Logger name =" ca.uhn.fhir.parser.LenientErrorHandler" level =" ERROR" />
23
20
Original file line number Diff line number Diff line change 14
14
import java .util .stream .Collectors ;
15
15
import java .util .stream .Stream ;
16
16
17
+ import org .apache .logging .log4j .Level ;
18
+ import org .apache .logging .log4j .core .config .Configurator ;
17
19
import org .hl7 .fhir .r4 .model .Bundle ;
18
20
import org .hl7 .fhir .r4 .model .Bundle .BundleEntryComponent ;
19
21
import org .hl7 .fhir .r4 .model .Bundle .SearchEntryMode ;
@@ -94,8 +96,14 @@ public void loadAndDeployPlugins()
94
96
if (localOrganizationIdentifierValue .isEmpty ())
95
97
logger .warn ("Local organization identifier unknown, check DSF FHIR server allow list" );
96
98
99
+ List <ProcessPlugin > loadedPlugins = processPluginLoader .loadPlugins ();
100
+
101
+ // set log level to debug for logger with plugin definition package name
102
+ loadedPlugins .stream ().map (ProcessPlugin ::getPluginDefinitionPackageName )
103
+ .forEach (name -> Configurator .setLevel (name , Level .DEBUG ));
104
+
97
105
List <ProcessPlugin > plugins = removeDuplicates (
98
- processPluginLoader . loadPlugins () .stream ().filter (p -> p .getPluginMdc ().executeWithPluginMdc (
106
+ loadedPlugins .stream ().filter (p -> p .getPluginMdc ().executeWithPluginMdc (
99
107
() -> p .initializeAndValidateResources (localOrganizationIdentifierValue .orElse (null )))));
100
108
101
109
if (plugins .isEmpty ())
You can’t perform that action at this time.
0 commit comments