Skip to content

Change logging mode from DEBUG to INFO - #258

Closed
Dante383 wants to merge 1 commit into
fbchat-dev:masterfrom
Dante383:patch-1
Closed

Change logging mode from DEBUG to INFO#258
Dante383 wants to merge 1 commit into
fbchat-dev:masterfrom
Dante383:patch-1

Conversation

@Dante383

Copy link
Copy Markdown
Contributor

Debug mode caused many trash to get printed in the console, and passing logging level in class initiation didn't seem to fix it.

Debug mode caused many trash to get printed in the console, and passing logging level in class initiation didn't seem to fix it.
@Dante383

Copy link
Copy Markdown
Contributor Author

Maybe it's because the library uses log.info everywhere, and doesn't sort messages for info, debug, error, etc. This is a work-around, temporary solution.

@DeltaF1

DeltaF1 commented Feb 18, 2018

Copy link
Copy Markdown
Contributor

I've had success setting the logging level higher in the initializer, are you sure it's not working? This line seems to show that it does:
https://github.com/carpedm20/fbchat/blob/314252480985827c4ebdb6c1ad2b87a7bb2d2a94/fbchat/client.py#L69

@madsmtm

madsmtm commented Feb 18, 2018

Copy link
Copy Markdown
Member

The real solution is to not use the log handlers at all, but this would probably be backwards incompatible. The temporary solution until we break backwards compatability is to just do what @DeltaF1 suggested.

@brianmatute011

Copy link
Copy Markdown

Hey alguien acá

@brianmatute011

Copy link
Copy Markdown

Tengo un problema

@brianmatute011

Copy link
Copy Markdown

Al ejecutar

@madsmtm

madsmtm commented Jan 3, 2019

Copy link
Copy Markdown
Member

Hi @brianmatute011, I sadly don't speak Spanish, can you try to elaborate on your issue in English?

If you're not a native speaker, maybe try using a service like Google Translate or similar to help you out 😊

@Dante383

Dante383 commented Jan 3, 2019

Copy link
Copy Markdown
Contributor Author

@madsmtm It's apparently so important to him that he even emailed me - but didn't responded to the request of using google translate. I doubt he'll respond

@brianmatute011

brianmatute011 commented Jan 6, 2019 via email

Copy link
Copy Markdown

@brianmatute011

brianmatute011 commented Jan 6, 2019 via email

Copy link
Copy Markdown

@madsmtm

madsmtm commented Jan 24, 2019

Copy link
Copy Markdown
Member

I'm sorry @brianmatute011, I really don't understand what you're trying to say. You said something about "having fbchat in all parties is not possible"? Are you having problems with listening and onMessage? Or are you having problems with retrieving threads/parties?

@brianmatute011

brianmatute011 commented Jan 26, 2019 via email

Copy link
Copy Markdown

@madsmtm

madsmtm commented Jan 26, 2019

Copy link
Copy Markdown
Member

As far as I understand, you're having trouble installing fbchat on your smartphone, using termux? I haven't tried it myself, so I probably can't help you very much. But did you manage to install Python?

@brianmatute011

brianmatute011 commented Jan 26, 2019 via email

Copy link
Copy Markdown

@madsmtm

madsmtm commented Jan 26, 2019

Copy link
Copy Markdown
Member

Just to clarify, you're having trouble installing fbchat on your phone?

@madsmtm madsmtm mentioned this pull request Feb 18, 2019
27 tasks
@madsmtm

madsmtm commented Aug 28, 2019

Copy link
Copy Markdown
Member

Fixed in d3a0ffc

@madsmtm madsmtm closed this Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants