[ 
https://issues.apache.org/jira/browse/YUNIKORN-2451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17824256#comment-17824256
 ] 

Wilfred Spiegelenburg commented on YUNIKORN-2451:
-------------------------------------------------

Please leverage the go way of doing this by implementing the String() function 
and change the logger type from zap.Int to zap.Stringer:

 
{code:java}
func (tt trackingType) String() string {
return [...]string{"none", "user", group"}[tt]
}
{code}
 

> add trackingType#String to decorate the logging output
> ------------------------------------------------------
>
>                 Key: YUNIKORN-2451
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2451
>             Project: Apache YuniKorn
>          Issue Type: Sub-task
>            Reporter: Chia-Ping Tsai
>            Assignee: Dong-Lin Hsieh
>            Priority: Minor
>
> The tracking type in the log is an integer number. We can add String method 
> for trackingType to offer more readable output.
> [https://github.com/apache/yunikorn-core/blob/master/pkg/scheduler/ugm/queue_tracker.go#L90]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to