-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graceful load JSON and Digest:CRC Modules #1066
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1066 +/- ##
==========================================
+ Coverage 62.18% 62.45% +0.27%
==========================================
Files 126 129 +3
Lines 9332 9371 +39
Branches 1475 1478 +3
==========================================
+ Hits 5803 5853 +50
+ Misses 2429 2415 -14
- Partials 1100 1103 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Handling of missing modules changed
Handling of missing protocols changed
39594bd
to
8f30747
Compare
remove requirement Digest::CRC
Fixed require check
- check json
- remove checks for missing Digest::CRC
…into missing-modules
So ganz "Graceful" ist das noch nicht :-)
und Dank systemd passiert das dann alle paar Sekunden wieder:
Es müsste auf jeden Fall in jeder sub, die Digest::CRC verwendet ein return in folgender Art hinein:
Damit die Fehlermeldungen auch sichtbar werden, hatte ich in der 00_SIGNALduino.pm sub SIGNALduino_Parse_MN schon mal diese Zeilen angepasst:
|
Mach doch einen commit mit den Anpassung. Ich war gestern ohnehin überrascht, dass es nicht mehr so ist, wie wir es in #927 hinterlassen hatten. |
Wir hatten ja in dem Issue keine Übereinstimmung gefunden, deshalb war alles so geblieben, wie es war. |
Falls wir das mit meiner Änderung so lassen wollen, müssten wir sicher in der SD_Protocols.pm noch die verbose-level anpassen. |
Was meinst Du damit? |
Ich habe diesen jetzt aber gleich für den Verbose-Level verwendet
da wir sonst Fehlermeldungen nie zu sehen bekommen. |
Habe ich gesehen, so ist das nicht gedacht. |
spellfix
…into missing-modules
Logging fehlendes CRC Modul angepasst
…into missing-modules
Sieht für mich jetzt gut aus:
|
Test Bresser 6in1 ergänzt
…into missing-modules
So geht es natürlich auch erstmal. |
Test entfernt, in dem Digest::CRC entladen wird, da nicht funktional
…into missing-modules
Ich würde es auf die schnelle erst einmal so belassen und dann ggf. auch heute noch SVN aktualisieren |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eigentlich ungern... aber weil du es bist :-)
(You can also link to an open issue here, if this describes the current behavior)
If Digest::CRC Module is not available, the Module is loaded and startup errors are logged
The SIGNALduino Module no longer depends on the CRC Module
maybe it causes an error in the libs, because they require CRC for some subs
#927