This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Set your channel invite only but allow messages from outside: | |
/mode #yourchannel +i-n | |
2. Set an inite exception for any user whose ident is longer than two chars, this | |
/mode #yourchannel +I *!??*@* | |
3. In the repository administration, give the irc bot a nick like 'G' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
formatter = logging.Formatter('%(asctime)s [%(levelname)s] %(name)s - %(message)s') | |
handler = logging.StreamHandler() | |
handler.setLevel(logging.INFO) | |
handler.setFormatter(formatter) | |
root_logger = logging.getLogger() | |
root_logger.addHandler(handler) | |
root_logger.setLevel(logging.INFO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Extract unique Python-Exceptions with their Traceback from a log/text file. | |
Usage:: | |
python extract_exceptions.py -f logfile.txt | |
Furthermore it supports excluding exceptions you don't want to have:: |