Closed aghasi closed 2 years ago
This just happens some time and doesn't affect app's behavior.
Do you use TDLib from Python?
yes. i'mg using TDLib from python3. two questions:
This error is harmless by itself. If you experience a crash after it, then it is caused by an FFi call to the on_log_message_callback
callback. The reason of the crash is unknown yet. Could you update to the latest TDLib, including changes in example/python/tdjson_example.py and check whether it still crashes?
You need more verbose log for that, but it would be useless. This error can be receiveв by any account.
it does not crash. I only hate this error in my logs because it appears every 2 seconds!
Can i disable logging of this error without affecting other logs?
@aghasi No, this logging can't be disabled. Why don't you redirect the log to a file?
@aghasi No, this logging can't be disabled. Why don't you redirect the log to a file?
because i want to see other logs in console. Is it possible to redirect TDLib logs to file? i don't mean redirection of Linux because it redirect all logs instead of TDLib logs.
Use the setLogStream
method to set up TDLib log destination.
Use the
setLogStream
method to set up TDLib log destination.
unfortunately setLogStream
affect logging
module of python!!! (logging
is a python module for logging)
Did you pass logStreamFile.redirect_stderr == false
?
No. my request is
{
"@type": "setLogStream",
"log_stream": {
"@type": "logStreamFile",
"path": r"/var/log/1.log",
"max_file_size": 10485760,
"redirect_stderr": True
}
}
You asked TDLib to redirect stderr to the TDLib's log.
You asked TDLib to redirect stderr to the TDLib's log.
But it redirects both stderr
and stdout
No, it does nothing with stdout.
In my case, such an error, which was logged without stopping, means that the account was banned.
I got this error continuously:
[ 1][t36][1640587825.643347024][Session.cpp:314][#109][!Session:1:main] BindKey failed: [Error : 400 : ENCRYPTED_MESSAGE_INVALID]
What is the problem?