Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork24
-
I was developing python project and the program has its own logging. But somehow the robotcode lsp prints the debug log into my program logs like the following.
Is there a way I can disable these logs to be printed? |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 8 replies
-
I'm not sure I understand your situation completely. To better assist you, could you please provide some additional information:
A bit more context would be helpful. These logs should normally only appear in the process where RobotCode is being executed. RobotCode uses Python's standard logging functionality, so you can disable these logs with the appropriate Python logging configuration. However, I don't have a specific example readily available at the moment. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thank you for that information. However, I need to clarify: What type of project are you working on? Is it a Robot Framework library or a RobotCode extension? This information will help me understand the issue and provide a more targeted solution. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I am working on a robotframework library, and when executing the robot file to run the test, the following logs will keep printing in my debug.log.
|
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
When do you configure your logger? I believe these messages end up in your log when the RobotCode Language Server tries to analyze your library. That should really only happen when the Language Server is initialized. If you start a test without the IDE, there shouldn’t be any log messages from the Language Server. That would mean you’re setting up your log configuration/initialization already in the constructor or during the initialization of your library. The library initializer, i.e. your library’s |
BetaWas this translation helpful?Give feedback.
All reactions
-
I’ll need to find my own solution for this, since Robot Framework isn’t the only entry point — my project also supports running scripts purely with Python. Back to the original question — is there an option or setting to disable debug logging? |
BetaWas this translation helpful?Give feedback.
All reactions
-
No. There is no switch or anything to disable logging; there’s only a switch to enable it. And enabling logging is just setting the basic logging config level. Still, I’m curious how you managed to get RobotCode messages appearing for you when you’re not using RobotCode in your code. |
BetaWas this translation helpful?Give feedback.