-
Notifications
You must be signed in to change notification settings - Fork 29
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
Update log configurations [ECR-3139] #854
Update log configurations [ECR-3139] #854
Conversation
Use 'debug' for our code only; 'warn' — for anything else.
Send any warnings to stdout; our debug entries — to stdout and the list appender.
That reduces the number of log messages in build output.
Move the log4j configuration for native ITs to native ITs so that it is (a) easily discoverable; (b) can be changed with no recompilation of Java `fakes` module. Also, pass the path to the Log4j configuration file to the service runtime bootstrap test to remove the error message from logs.
6a51a75
to
c670c73
Compare
} | ||
|
||
/// The path to `integration_tests` root directory. | ||
fn project_root_dir() -> &'static Path { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it have to return a reference? If so when is the object destroyed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need to return PathBuf
, not &Path
.
@@ -19,7 +19,9 @@ The release is based on Exonum 0.11 | |||
|
|||
### Added | |||
- `toOptional()` method to `EntryIndexProxy`. (#790) | |||
- `getPoolTransactionHashes()` method to `Blockchain`. (#850) | |||
- `getTransactionPool()` method to `Blockchain`. (#850) | |||
- SLF4J to Log4j binding to enable libraries coded to the SLF4J API to use Log4j 2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that "- SLF4J support" is enough in the changelog. Also, I would mention in docs that EJB provides log4j 2
as a logging implementation
@@ -354,6 +354,7 @@ | |||
<artifactId>maven-surefire-plugin</artifactId> | |||
<version>2.22.1</version> | |||
<configuration> | |||
<redirectTestOutputToFile>true</redirectTestOutputToFile> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does it bring to us? We do not use stdout in tests so often.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't, the logger prints to stdout (see the docs)
Co-Authored-By: dmitry-timofeev <[email protected]>
/// Java logs are needed for debugging purposes. | ||
/// | ||
/// It requires the log4j-core library to be present on the classpath, which is the case with fakes. | ||
fn get_log4j_path_option() -> String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: why we even use these get_
prefixes? https://rust-lang-nursery.github.io/api-guidelines/naming.html#getter-names-follow-rust-convention-c-getter
} | ||
|
||
/// The path to `integration_tests` root directory. | ||
fn project_root_dir() -> &'static Path { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need to return PathBuf
, not &Path
.
Overview
Update log configurations:
so that it is (a) easily discoverable; (b) can be changed with no
recompilation of Java
fakes
module.service runtime bootstrap test to remove the error message from logs.
See: https://jira.bf.local/browse/ECR-3139?focusedCommentId=43246&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-43246
Definition of Done