smallneuron 1.1.9__tar.gz → 1.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {smallneuron-1.1.9/src/smallneuron.egg-info → smallneuron-1.2.0}/PKG-INFO +1 -1
- {smallneuron-1.1.9 → smallneuron-1.2.0}/pyproject.toml +1 -1
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/logger.py +9 -4
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/snserial.py +0 -1
- {smallneuron-1.1.9 → smallneuron-1.2.0/src/smallneuron.egg-info}/PKG-INFO +1 -1
- {smallneuron-1.1.9 → smallneuron-1.2.0}/.gitignore +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/LICENSE +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/README.md +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/example.py +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/setup.cfg +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/__init__.py +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/build +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/gpio_h3.c +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/gpio_h3.h +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/gpio_h3.so +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/smallneuron.py +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/snapi.py +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/sndummy.py +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/sngpio.py +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/sninput.py +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/snmqtt.py +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/sntimer.py +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron.egg-info/SOURCES.txt +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron.egg-info/dependency_links.txt +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron.egg-info/top_level.txt +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron_pelainux.egg-info/PKG-INFO +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron_pelainux.egg-info/SOURCES.txt +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron_pelainux.egg-info/dependency_links.txt +0 -0
- {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron_pelainux.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,8 @@ from time import time
|
|
|
4
4
|
import sys
|
|
5
5
|
|
|
6
6
|
class Logger:
|
|
7
|
-
|
|
7
|
+
perf_enable=False
|
|
8
|
+
prev_time=time()
|
|
8
9
|
logLevel=syslog.LOG_DEBUG
|
|
9
10
|
def __init__(self, service_name):
|
|
10
11
|
self.service_name = service_name
|
|
@@ -33,10 +34,14 @@ class Logger:
|
|
|
33
34
|
def set_level(level):
|
|
34
35
|
Logger.logLevel=level
|
|
35
36
|
|
|
37
|
+
def set_perf(setOn):
|
|
38
|
+
Logger.perf_enable=setOn
|
|
39
|
+
|
|
36
40
|
def perfMark(self,text):
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
if Logger.perf_enable:
|
|
42
|
+
t=time()
|
|
43
|
+
print(self.service_name, t, t-Logger.prev_time, text, file=sys.stderr)
|
|
44
|
+
Logger.prev_time=t
|
|
40
45
|
|
|
41
46
|
def __logger(self, severity, *args):
|
|
42
47
|
try:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron_pelainux.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|