Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
newearthmartin committed Dec 16, 2022
1 parent db88b55 commit 86e0870
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion trading/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@
'disable_existing_loggers': False,
'formatters': {
'simple': {'format': '%(name)s %(levelname)s %(message)s'},
'simple_time': {'format': '%(asctime)s %(levelname)s %(name)s - %(message)s'},
'simple_time': {
'format': '%(asctime)s %(levelname)s %(name)s - %(message)s',
'datefmt': '%Y-%m-%d %H:%M:%S',
},
},
'filters': {
'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'},
Expand Down
2 changes: 1 addition & 1 deletion wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def subtract(self, coin, value):
self.add(coin, -value)

def __repr__(self):
return f'({self.balance[Coin.USDT]} USDT - {self.balance[Coin.BTC]} BTC)'
return f'({self.balance[Coin.USDT].normalize()} USDT - {self.balance[Coin.BTC].normalize()} BTC)'

def update_balances(self, binance_manager):
for coin in Coin:
Expand Down

0 comments on commit 86e0870

Please sign in to comment.