Skip to content

Commit

Permalink
modify log
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuizi7 committed Oct 13, 2022
1 parent 847607a commit d75da89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rqalpha/portfolio/__init__.py
Expand Up @@ -34,7 +34,7 @@
from rqalpha.utils import is_valid_price
from rqalpha.utils.functools import lru_cache
from rqalpha.utils.i18n import gettext as _
from rqalpha.utils.logger import user_log
from rqalpha.utils.logger import user_system_log
from rqalpha.utils.repr import PropertyReprMeta

OrderApiType = Callable[[str, Union[int, float], OrderStyle, bool], List[Order]]
Expand Down Expand Up @@ -279,7 +279,7 @@ def deposit_withdraw(self, account_type, amount, receiving_days=0):
unit_net_value = self.unit_net_value
self._accounts[account_type].deposit_withdraw(amount, receiving_days)
_units = self.total_value / unit_net_value
user_log.info(_("Cash add {}. units {} become to {}".format(amount, self._units, _units)))
user_system_log.debug(_("Cash add {}. units {} become to {}".format(amount, self._units, _units)))
self._units = _units

def finance_repay(self, amount, account_type):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -5,7 +5,7 @@

[metadata]
name = rqalpha
version = 4.12.0
version = 4.12.1

[versioneer]
VCS = git
Expand Down

0 comments on commit d75da89

Please sign in to comment.