[#96] Move log messages to constants #194

Merged
alexvanin merged 1 commit from :feature/3978-move_logs_to_constants into master 2023-08-24 13:47:12 +00:00
Member

Signed-off-by: Roman Loginov r.loginov@yadro.com

Signed-off-by: Roman Loginov <r.loginov@yadro.com>
r.loginov self-assigned this 2023-08-23 11:45:58 +00:00
r.loginov requested review from storage-services-committers 2023-08-23 11:57:19 +00:00
r.loginov requested review from storage-services-developers 2023-08-23 11:57:22 +00:00
dkirillov reviewed 2023-08-23 13:14:00 +00:00
@ -0,0 +8,4 @@
* software and the intellectual property contained therein is expressly
* limited to the terms and conditions of the License Agreement under which
* it is provided by YADRO.
*/
Member

In public repositories we don't need this Copyright

In public repositories we don't need this Copyright
dkirillov marked this conversation as resolved
r.loginov force-pushed feature/3978-move_logs_to_constants from bdc78de601 to 9aa698dda2 2023-08-23 13:19:31 +00:00 Compare
Member

Let's rewrite this to a.log.Warn("resolver 'nns' won't be used since 'rpc_endpoint' isn't provided") and move it to constant too

Let's rewrite [this](https://git.frostfs.info/r.loginov/frostfs-s3-gw/src/commit/9aa698dda20a3ce4a286977f5a7ebdcaa77c5aa5/cmd/s3-gw/app.go#L230) to `a.log.Warn("resolver 'nns' won't be used since 'rpc_endpoint' isn't provided")` and move it to constant too
r.loginov force-pushed feature/3978-move_logs_to_constants from 9aa698dda2 to 8efcc957ea 2023-08-23 15:34:35 +00:00 Compare
dkirillov approved these changes 2023-08-24 06:29:13 +00:00
Owner

We also have a linter which can help catching this problems in future https://git.frostfs.info/TrueCloudLab/linters/#user-content-noliteral

We also have a linter which can help catching this problems in future https://git.frostfs.info/TrueCloudLab/linters/#user-content-noliteral
alexvanin approved these changes 2023-08-24 13:47:02 +00:00
alexvanin merged commit 8efcc957ea into master 2023-08-24 13:47:12 +00:00
alexvanin deleted branch feature/3978-move_logs_to_constants 2023-08-24 13:47:12 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-developers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#194
No description provided.