# | Line 1 | Line 1 | |
---|---|---|
1 | < | import logging,time |
1 | > | import logging,time,sys |
2 | import common | |
3 | ||
4 | class CrabLogger: | |
# | Line 27 | Line 27 | class CrabLogger: | |
27 | for x in self.logger.handlers: | |
28 | if x.__class__==logging.StreamHandler: streamenPresent=True | |
29 | if not streamenPresent: | |
30 | < | self.ch=logging.StreamHandler() |
30 | > | self.ch=logging.StreamHandler(sys.stdout) |
31 | ch_formatter = logging.Formatter("%(name)s %(message)s") | |
32 | ch_level=logging.INFO | |
33 | if common.debugLevel > 0:ch_level=logging.DEBUG |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |