Comments (3)
I am very novice when it comes to python. The following helped me a bit.
import logging
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
But then I just see this:
DEBUG:irc.client:connect(server='chat.freenode.net', port=6697, nickname='wscrsfasd', ...)
DEBUG:irc.client:TO SERVER: NICK alskdfjadf
DEBUG:irc.client:TO SERVER: USER alskdfjadf 0 * :alskdfjadf
DEBUG:irc.client:process_forever(timeout=0.2)
DEBUG:irc.client:_dispatcher: disconnect
from irc.
I am very novice when it comes to python. The following helped me a bit.
import logging logging.basicConfig() logging.getLogger().setLevel(logging.DEBUG)But then I just see this:
DEBUG:irc.client:connect(server='chat.freenode.net', port=6697, nickname='wscrsfasd', ...) DEBUG:irc.client:TO SERVER: NICK alskdfjadf DEBUG:irc.client:TO SERVER: USER alskdfjadf 0 * :alskdfjadf DEBUG:irc.client:process_forever(timeout=0.2) DEBUG:irc.client:_dispatcher: disconnect
That helps, I ended up triggering on_endofmotd
as well as on_welcome
hooks.
But I still don't get the connect log, but I simply just stopped caring and went on my way :)
from irc.
If there are events that are missing logging statements, I'd welcome improvements to that effect. As written, this issue is more of a question that's been answered. Thanks lord-carlos.
from irc.
Related Issues (20)
- After joining a channel, how do I get a list of usernames? HOT 1
- 'AioReactor' object has no attribute 'scheduler' HOT 3
- set_keepalive resulting into "irc.client.ServerNotConnectedError: Not connected."
- Empty quit message raises IndexError
- encoding outgoing messages seems to remove "\x1d" HOT 1
- Docs builds failing HOT 1
- IRCFoldedCase no longer folding HOT 1
- The addition of new numeric event names for SASL broke heisenbridge, which was using numeric codes. HOT 3
- SSL Support HOT 1
- `irc.connection.Factory.connect` should support `ssl.SSLContext.wrap_socket` with the `server_hostname` parameter HOT 1
- How to list channels HOT 2
- Error when attempting to join multiple channels HOT 2
- no colored or formatted text? HOT 5
- IRC Bot reconn strategy question HOT 3
- ResourceWarnings in test_reconnects_are_stable HOT 6
- How to use data from one event handler in a different one? HOT 3
- Receive public messages HOT 1
- SASL example HOT 4
- 20.4.1 installs `docs` into site-packages HOT 2
- Add type annotations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irc.