Skip to content

Commit

Permalink
Fixing some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucian-cm committed Jul 9, 2020
1 parent 7daf41f commit 8671a9e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@

public abstract class AbstractExecutionData {

private static final String VERBOSITY_LEVEL = getProperty(CSLANG_RUNTIME_EVENTS_VERBOSITY.getValue(),
DEFAULT.getValue());

@SafeVarargs
public static void fireEvent(ExecutionRuntimeServices runtimeServices,
RunEnvironment runEnvironment,
Expand Down Expand Up @@ -120,13 +117,15 @@ private static LanguageEventData getLanguageEventData(ExecutionRuntimeServices r
}

private static void flattenAndSetContext(LanguageEventData eventData, Map<String, Value> context) {
if (ALL.getValue().equals(VERBOSITY_LEVEL) && (context != null)) {
if (ALL.getValue().equals(getProperty(CSLANG_RUNTIME_EVENTS_VERBOSITY.getValue(),
DEFAULT.getValue())) && (context != null)) {
eventData.setContext(flatten(context));
}
}

private static void flattenAndSetContext(LanguageEventData eventData, ReadOnlyContextAccessor accessor) {
if (ALL.getValue().equals(VERBOSITY_LEVEL) && (accessor != null)) {
if (ALL.getValue().equals(getProperty(CSLANG_RUNTIME_EVENTS_VERBOSITY.getValue(),
DEFAULT.getValue())) && (accessor != null)) {
eventData.setContext(flatten(accessor.getContextHolder()));
}
}
Expand Down

0 comments on commit 8671a9e

Please sign in to comment.