comparison py/utils.py @ 149:d686b111dab4

working better. logging works properly, cleanup fridge.off() happens.
author Matt Johnston <matt@ucc.asn.au>
date Sun, 16 Dec 2012 22:14:46 +0800
parents 6517ddee3187
children 185621f47040
comparison
equal deleted inserted replaced
148:b32e5a11a4cb 149:d686b111dab4
3 #import ctypes 3 #import ctypes
4 import time 4 import time
5 import select 5 import select
6 import logging 6 import logging
7 7
8 D = logging.debug
8 L = logging.info 9 L = logging.info
9 W = logging.warning 10 W = logging.warning
10 E = logging.error 11 E = logging.error
11 12
12 DEFAULT_TRIES = 3 13 DEFAULT_TRIES = 3