-
Notifications
You must be signed in to change notification settings - Fork 8
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
Minor improvements #217
Minor improvements #217
Conversation
Signed-off-by: Marcono1234 <[email protected]>
Signed-off-by: Marcono1234 <[email protected]>
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.
Aside from the small logger issue this looks very good to me, thanks!
...ion-java5/src/main/java/nl/talsmasoftware/context/executors/ContextAwareExecutorService.java
Outdated
Show resolved
Hide resolved
Okay, let's just make all loggers static.
… Op 14 mrt. 2021, om 23:37 heeft Marcono1234 ***@***.***> het volgende geschreven:
@Marcono1234 commented on this pull request.
In context-propagation-java5/src/main/java/nl/talsmasoftware/context/executors/ContextAwareExecutorService.java <#217 (comment)>:
> @@ -39,7 +39,7 @@
* @author Sjoerd Talsma
*/
public class ContextAwareExecutorService extends CallMappingExecutorService {
- private final Logger logger = Logger.getLogger(getClass().getName());
+ private static final Logger logger = Logger.getLogger(ContextAwareExecutorService.class.getName());
The main point of my comment was rather why I prefer a static logger. There are probably now these options (1, 1.i, 2, 2.i, 3), which one do you prefer?
Keep the logger code as is (i.e. ContextAwareExecutorService.logger remains an instance field)
Additionally make ServletRequestContextFilter.logger an instance field as well and use getClass().getName()
Keep ContextAwareExecutorService.logger as instance field but use ContextAwareExecutorService.class (addresses some of the concerns listed in my comment above)
Additionally make ServletRequestContextFilter.logger an instance field but use ServletRequestContextFilter.class
Make ContextAwareExecutorService.logger static
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#217 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAWLNLHPKPHQR3EOE7DUAMLTDU3BVANCNFSM4YV6ZF2A>.
|
Could you do me a favour and merge develop into your branch? |
…4/minor-improvements
Sorry for the delay, I have merged I think you need to include You can probably also slightly simplify the workflow by removing the following (though I am not completely sure): context-propagation/.github/workflows/ci-build.yml Lines 6 to 7 in a12ec68
|
Thanks, I wasn't 100% sure about that, but since your workflow didn't run I guess it's necessary.
I tried, but it refused to run the workflow on |
Force pushed (only changing commit message and reverting it back) to trigger GitHub workflow. |
I need to make the tasks that depend on secrets skippable for pull requests. Sorry for all the trial and error in this PR! |
Updated the build script, should run from forked repo now. |
Signed-off-by: Marcono1234 <[email protected]>
No worries; looks like it worked now. |
Merged to develop. Thanks again for your contribution @Marcono1234 |
Contains some of the commits which were originally part of #207.