Skip to content

(minor) Make Admin tool more talkative#1006

Merged
wajda merged 1 commit into
developfrom
feature/admin-logs
Jan 24, 2022
Merged

(minor) Make Admin tool more talkative#1006
wajda merged 1 commit into
developfrom
feature/admin-logs

Conversation

@wajda
Copy link
Copy Markdown
Contributor

@wajda wajda commented Jan 20, 2022

Change log level of some messages from DEBUG to INFO to make the output slightly more verbose. For instance, create/drop collections, index, service etc.

@wajda wajda added this to the 1.0.0 milestone Jan 20, 2022
@wajda wajda self-assigned this Jan 20, 2022
@wajda wajda requested a review from cerveada as a code owner January 20, 2022 14:33
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Comment on lines +134 to +135
else Future.successful({})
} yield {}
Copy link
Copy Markdown
Contributor

@cerveada cerveada Jan 21, 2022

Choose a reason for hiding this comment

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

In my opinion, {} instead of Unit is making the code harder to understand.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The reason why I removed Unit is because it is not an instance of the type Unit. The only instance of it is (). So the proper writing of the end of that for block would be one of these: yield (), yield {()} or yield {}

Copy link
Copy Markdown
Contributor

@cerveada cerveada Jan 24, 2022

Choose a reason for hiding this comment

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

OK, so it's correct. Still, it's a bit confusing. There is a Future.unit but only in Scala 2.12:
https://www.scala-lang.org/api/2.12.15/scala/concurrent/Future$.html#unit:scala.concurrent.Future[Unit]

Let's keep it as it is for now.

@wajda wajda merged commit 949b301 into develop Jan 24, 2022
@wajda wajda deleted the feature/admin-logs branch January 24, 2022 11:11
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.

2 participants