improve transfer history layout

This commit is contained in:
c9s 2021-01-15 14:24:24 +08:00
parent fd6301b780
commit 3db5c26416

View File

@ -116,10 +116,10 @@ var TransferHistoryCmd = &cobra.Command{
switch record := record.Record.(type) { switch record := record.Record.(type) {
case types.Deposit: case types.Deposit:
logrus.Infof("%s: %s <== (deposit) %f [%s]", record.Time, record.Asset, record.Amount, record.Status) logrus.Infof("%s: <--- DEPOSIT %f %s [%s]", record.Time, record.Amount, record.Asset, record.Status)
case types.Withdraw: case types.Withdraw:
logrus.Infof("%s: %s ==> (withdraw) %f [%s]", record.ApplyTime, record.Asset, record.Amount, record.Status) logrus.Infof("%s: ---> WITHDRAW %f %s [%s]", record.ApplyTime, record.Amount, record.Asset, record.Status)
default: default:
logrus.Infof("unknown record: %+v", record) logrus.Infof("unknown record: %+v", record)