You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by GitBox <gi...@apache.org> on 2022/10/10 13:35:08 UTC

[GitHub] [incubator-devlake] mindlesscloud opened a new issue, #3358: [Refactor][log] Some log messages were not well formatted

mindlesscloud opened a new issue, #3358:
URL: https://github.com/apache/incubator-devlake/issues/3358

   ## What and why to refactor
   some log messages look like this:
   ![1Dlz6AgY9Q](https://user-images.githubusercontent.com/8455907/194875582-6c34d9e9-de09-4102-a573-2fd72aa8b333.jpg)
   They are caused by missing or using incorrect verb while formatting the message string.
   
   
   ## Describe the solution you'd like
   The verb `%w` can only be used in `fmt.Errorf` to wrap an error. For the sake of formatting the  error message, we should stick with `%v` instead of `%w`
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] abeizn closed issue #3358: [Refactor][log] Some log messages were not well formatted

Posted by GitBox <gi...@apache.org>.
abeizn closed issue #3358: [Refactor][log] Some log messages were not well formatted
URL: https://github.com/apache/incubator-devlake/issues/3358


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org