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

Logging does not work if written in lowercase(hazelcast.logging.level) [API-1740] #1432

Merged
merged 764 commits into from Dec 19, 2022

Conversation

harunalpak
Copy link
Contributor

This is simple change, I only add toUpperCase().

I am not sure we need extra test for this. I added a sample test for logging.

srknzl and others added 30 commits July 6, 2021 15:03
* Now if a config key is wrong the client fails fast
Changes: 

* Add datetime classes back, add default serializers, change year in codec to be int

* Update tests and serialization

* Update binary compat test

* Add date/time to default serializers test

* Adjust tests according to back compat

* Rename sql service getter to getSql

* Adjust timezone string

* Add jet tests

* Add constructors for datetime wrappers
* Add code sample checker

* Update code samples to add client.shutdown
* Add distinct aggregator and tests

* Update documentation
…ternal proxies (hazelcast#1023)

* Fix DistributedObjectsTest failure due to internal proxies

* Fix HazelcastClientTest
* Test adjustments around jet enabled config for backward compatbility tests

* Fix datatypetest.js

* Move createMapping to TestUtil and use it in all sql integration tests

* Fix code samples
@devOpsHazelcast
Copy link
Contributor

devOpsHazelcast commented Dec 8, 2022

CLA assistant check
All committers have signed the CLA.

code_samples/logging_sample.js Outdated Show resolved Hide resolved
src/util/Util.ts Show resolved Hide resolved
@srknzl
Copy link
Member

srknzl commented Dec 8, 2022

srknzl
srknzl previously approved these changes Dec 14, 2022
src/util/Util.ts Outdated
@@ -69,7 +69,7 @@ export function shuffleArray<T>(array: T[]): void {

/** @internal */
export function enumFromString<T>(enumType: any, value: string): T {
return enumType[value.toUpperCase()];
return enumType[value ? value.toUpperCase() : value];
Copy link
Member

Choose a reason for hiding this comment

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

You should not need this. Just ensure where we use enumFromString, value is a string indeed.

@codecov
Copy link

codecov bot commented Dec 15, 2022

Codecov Report

Merging #1432 (5e92ece) into master (815b3af) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1432      +/-   ##
==========================================
+ Coverage   93.34%   93.37%   +0.02%     
==========================================
  Files         466      466              
  Lines       16616    16623       +7     
  Branches     1348     1351       +3     
==========================================
+ Hits        15511    15522      +11     
+ Misses        803      798       -5     
- Partials      302      303       +1     
Impacted Files Coverage Δ
src/util/Util.ts 86.98% <100.00%> (ø)
src/protocol/ErrorFactory.ts 64.66% <0.00%> (-0.76%) ⬇️
src/invocation/InvocationService.ts 94.50% <0.00%> (ø)
src/network/Connection.ts 94.82% <0.00%> (+0.60%) ⬆️
src/proxy/NearCachedMapProxy.ts 94.44% <0.00%> (+1.38%) ⬆️
src/nearcache/NearCache.ts 93.79% <0.00%> (+1.55%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@harunalpak harunalpak merged commit 0d95751 into hazelcast:master Dec 19, 2022
srknzl pushed a commit to fatihozer0/hazelcast-nodejs-client that referenced this pull request Mar 24, 2023
…) [API-1740] (hazelcast#1432)

* Logging does not work if written in lowercase(hazelcast.logging.level) [API-1740]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants