Comments (6)
This is actually causing me some issues now so I've chosen your first option above and created a PR, open to feedback:
from pyrevit.
hey @sanzoghenzo
i am fine with either option and dont mind to submit a PR to address but would like some direction from another maintainer before doing so.
from pyrevit.
Hi @kirsch33, thanks for pointing this out.
I've checked the history of that module and it seems it was always like that, maybe @eirannejad could shed some light on that.
But I agree with you, the name log_errors
suggests that all the errors should/shouldn't be written.
We have some options here:
- if this is a bug, add the
self._logerror
check before the lines you pointed - if this was an intended feature, add a
log_commit_errors
argument to the init and use that to suppress the logging, so that we keep retro-compatibility.
from pyrevit.
in the meantime, im trying to figure a workaround by completely suppressing all errors on a script level. i tried the following within a script that calls a pyRevit transaction:
logger = script.get_logger()
logger.set_quiet_mode()
but it doesnt seem to be working. any ideas @sanzoghenzo ?
from pyrevit.
in the meantime, im trying to figure a workaround by completely suppressing all errors on a script level. i tried the following within a script that calls a pyRevit transaction:
logger = script.get_logger() logger.set_quiet_mode()but it doesnt seem to be working. any ideas @sanzoghenzo ?
What does print(logger.get_level())
outputs? It should show something like CRITICAL
, a log level that is never used in the codebase
from pyrevit.
it outputs 50
which corresponds to CRITICAL
and in the script if I try logger.error("test")
it does not activate the logging window which is what I want.
but if something in the transaction wrapper errors, it will still display the error level message. maybe the transaction wrapper is using a different logger ?
from pyrevit.
Related Issues (20)
- Water and Airflow parameters - Sum total tool unit fix
- [Bug]: Color Splasher HOT 4
- [Bug]: Crash List installed Revits.
- Wipe Option: Purge unused Revit Sheets which deletes all Sheets without Viewport on them except for the Sheet that I have open
- [Bug]: List Family Size error. crashes on Revit 2024 HOT 1
- [Bug]: "Select destination location" has disappeared from the admin installer
- Multiselect from different groups returns only selections from one group HOT 3
- How to do PostableCommand execution without closing Windows Form? pyrevit HOT 4
- Connect PyRevit To Design Automation Revit HOT 2
- Pyrevit run commandline option: to run the script in already opened instance HOT 1
- [Bug]: Tooltip images not displaying HOT 4
- [Bug]: PyRevitLoader - Error Loading pyRevit HOT 2
- I'm having problem with Revit 2024 pyrevit loader HOT 10
- Pyrevit 4.8.16.24121 not working via SCCM HOT 5
- PyRevitLoader - Error Loading pyRevit HOT 5
- I already followed the installation troubleshooting guide thoroughly HOT 1
- [Bug]: Revit 2025 pyRevit HOT 2
- [Bug]: Trackback error when opening settings HOT 2
- [Bug]: Unable to install package HOT 6
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 pyrevit.