Skip to content

Conversation

tnleeuw
Copy link
Contributor

@tnleeuw tnleeuw commented May 14, 2025

Change Larva so it does not always need to have an outputstream available, but only when running scenarios (and core code only really depends on it for logs).

This is to enable Larva functionality to be called as library component, or from regular remote API calls.

@tnleeuw tnleeuw requested review from evandongen and nielsm5 May 14, 2025 07:30
@tnleeuw tnleeuw self-assigned this May 14, 2025
@tnleeuw tnleeuw added the Larva label May 14, 2025
@@ -52,6 +52,6 @@ public static LarvaLogLevel parse(String value, LarvaLogLevel defaultValue) {
}

public boolean shouldLog(@Nullable LarvaLogLevel other) {
return other == null || this.index <= other.index;
return other == null || this.ordinal() <= other.ordinal();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

Comment on lines 65 to 66
System.err.println("log.dir=" + System.getProperty("log.dir"));
System.err.println("log.dir=" + AppConstants.getInstance().getProperty("log.dir"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is het handig deze twee de zelfde 'key' te geven?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, dat is wat debug-output die ik had toegevoegd omdat ik wou weten waarom iets mis ging. Was niet de bedoeling om dat te committen 🫣

@tnleeuw tnleeuw requested review from evandongen and nielsm5 May 16, 2025 16:25
Copy link

@tnleeuw tnleeuw added this to the 9.2.0 milestone May 19, 2025
@github-project-automation github-project-automation bot moved this to In Progress in Frank!Framework May 19, 2025
@tnleeuw tnleeuw moved this from In Progress to Review in Frank!Framework May 19, 2025
@nielsm5 nielsm5 merged commit e1b6f05 into master May 19, 2025
27 of 28 checks passed
@nielsm5 nielsm5 deleted the techdebt/LarvaOutputRefactoring branch May 19, 2025 11:13
@github-project-automation github-project-automation bot moved this from Review to Done in Frank!Framework May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants