Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RtsLoggingUpdate #673

Merged
merged 1 commit into from
Apr 3, 2024
Merged

RtsLoggingUpdate #673

merged 1 commit into from
Apr 3, 2024

Conversation

jml985
Copy link
Contributor

@jml985 jml985 commented Mar 25, 2024

updates to allow RTS logging in Jevp while leaving it disabled in general offline computing

@@ -1432,7 +1433,7 @@ if ( $#src > -1 ) {
}
}
if ($pkg eq "RTS") {
my $cppflags = "-DRTS_PROJECT_STAR -DTPXREADER -DRTS_LITTLE_ENDIAN";
my $cppflags = "-DRTS_PROJECT_STAR -DTPXREADER -DRTS_LITTLE_ENDIAN ";
Copy link
Contributor

Choose a reason for hiding this comment

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

Just making a note that the only difference in this line appears to be whitespace at the end of $cppflags.

Copy link
Contributor

@klendathu2k klendathu2k left a comment

Choose a reason for hiding this comment

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

I don't see any issues with cons. Internal changes to the logger look to me like code cleanup, so no comments there.

@@ -1,4 +1,7 @@
# STAR LEVEL for EVP code

starver SL23b
starver SL23c
Copy link
Contributor

Choose a reason for hiding this comment

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

SL23b and SL23c are equivalent libraries, so this change has no effect.

@@ -197,7 +197,8 @@ if ( $pkg eq "Jevp") {
. $main::PATH_SEPARATOR . "#OnlTools/Jevp/StJevpBuilders"
. $main::PATH_SEPARATOR . "#OnlTools/Jevp/StJevpViewer"
. $main::PATH_SEPARATOR . $CPPPATH;
$CPPFLAGS .= " -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_NO_DEBUG ";
$CPPFLAGS .= " -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_NO_DEBUG -DRTS_ENABLE_LOG ";
Copy link
Contributor

Choose a reason for hiding this comment

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

Jevp gets compiled when anyone checks out and compiled this star-sw repository (including official library compilations at SDCC currently, e.g. $STAR/.sl73_gcc485/LIB/libJevp.so). Does this mean the logging will be enabled within Jevp for everyone? Is that the desired effect?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

regarding SL23b/SL23c I don't mind if it has no effect. it works for SL23c and it was the newest so its what I chose.

regarding the desired effect. Yes, that is the desired effect. The server is a rather special case, I wouldn't expect anyone to attempt to run it other than on the official servers. For the builders, which users do run while debugging, the default is set to write to stderror, so in order to see any output the users need to have logging enabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a way to set a define easily at the compile step? via a cons flag or environment variable? If so, I would be happy to use such a mechanism, rather than set it globally.

Copy link
Member

@plexoos plexoos left a comment

Choose a reason for hiding this comment

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

Hopefully, these changes were tested.

Seems like the new flag enables the logging logic introduced in #644

@plexoos plexoos merged commit 267ec8e into star-bnl:main Apr 3, 2024
148 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants