Logs linter #162

Closed
opened 2023-03-23 08:28:14 +00:00 by dstepanov-yadro · 3 comments

At the moment, the content of the logs is not controlled in any way. Logs contain entries with errors or incomprehensible content. There is no log proofreading process.

Describe the solution you'd like

We need to add a linter that will check that the log entries are taken from constants or variables in a given package.

## Is your feature request related to a problem? Please describe. At the moment, the content of the logs is not controlled in any way. Logs contain entries with errors or incomprehensible content. There is no log proofreading process. ## Describe the solution you'd like We need to add a linter that will check that the log entries are taken from constants or variables in a given package.
dstepanov-yadro added the
discussion
frostfs-node
triage
labels 2023-03-23 08:28:14 +00:00
Member

Could you add some code examples of what sort of things the linter would highlight?

Could you add some code examples of what sort of things the linter would highlight?
Author
Member

Could you add some code examples of what sort of things the linter would highlight?

For example log.Debug("processing node...") should be

messages.go:

const (
	MsgProcessingNode = "processing node..."
)

usage:

log.Debug(messages.MsgProcessingNode)

> Could you add some code examples of what sort of things the linter would highlight? For example ```log.Debug("processing node...")``` should be ``` messages.go: const ( MsgProcessingNode = "processing node..." ) usage: log.Debug(messages.MsgProcessingNode) ```
Author
Member

All new messages should be added to messages-file(s) that will undergo the proofread process.

All new messages should be added to messages-file(s) that will undergo the proofread process.
fyrchik added this to the v0.38.0 milestone 2023-05-18 08:33:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 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-node#162
No description provided.