Skip to content

Commit cd22b46

Browse files
committed
Move check function to utils
1 parent e54d16b commit cd22b46

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

openprocurement/auction/worker/auction.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,11 @@
3333
from openprocurement.auction.worker.utils import \
3434
prepare_initial_bid_stage, prepare_results_stage
3535
from openprocurement.auction.utils import (
36-
get_latest_bid_for_bidder, sorting_by_amount,
36+
get_latest_bid_for_bidder, sorting_by_amount, check,
3737
sorting_start_bids_by_amount, delete_mapping, get_tender_data
3838
)
3939

4040
logging.addLevelName(25, 'CHECK')
41-
42-
43-
def check(self, msg, exc=None, *args, **kwargs):
44-
"""
45-
Log 'msg % args' with severity 'CHECK'.
46-
47-
If exc parameter is not None, will log exc message with severity 'ERROR'.
48-
"""
49-
self.log(25, msg)
50-
if exc:
51-
self.error(exc, exc_info=True)
52-
53-
5441
logging.Logger.check = check
5542

5643
LOGGER = logging.getLogger('Auction Worker')

0 commit comments

Comments
 (0)