Commit 53b75e7ba11414fbdcde99e358d6f95e257dec3a
1 parent
f8be8cbd
Exists in
dev
Remove old logger
Showing
3 changed files
with
8 additions
and
7 deletions
Show diff stats
src/core/pyros_django/alert_manager/tests.py
src/core/pyros_django/common/tests.py
1 | 1 | # Santdard imports |
2 | -from utils.Logger import * | |
2 | +#from utils.Logger import * | |
3 | 3 | |
4 | 4 | # Django imports |
5 | 5 | from django.test import TestCase |
... | ... | @@ -11,7 +11,7 @@ from user_manager.models import Country |
11 | 11 | from common.models import * |
12 | 12 | from common.RequestBuilder import RequestBuilder |
13 | 13 | |
14 | -log = setupLogger("common", "common") | |
14 | +#log = setupLogger("common", "common") | |
15 | 15 | |
16 | 16 | """ |
17 | 17 | class RequestBuilderTests(TestCase): | ... | ... |
src/core/pyros_django/devices/Device.py
... | ... | @@ -4,7 +4,7 @@ import configparser |
4 | 4 | import abc |
5 | 5 | from pathlib import Path |
6 | 6 | import select |
7 | -import utils.Logger as L | |
7 | +#import utils.Logger as L | |
8 | 8 | import time |
9 | 9 | import os |
10 | 10 | from common.models import Log |
... | ... | @@ -19,7 +19,7 @@ RECONNECT_TIMEOUT_SECONDS = 20 |
19 | 19 | |
20 | 20 | class DeviceController(): |
21 | 21 | __metaclass__ = abc.ABCMeta |
22 | - logger = L.setupLogger("DeviceLogger", "Devices") | |
22 | + #logger = L.setupLogger("DeviceLogger", "Devices") | |
23 | 23 | name = "" |
24 | 24 | #config_file = "../config/socket_config.ini" |
25 | 25 | my_parent_abs_dir = Path(__file__).resolve().parent |
... | ... | @@ -170,7 +170,8 @@ class DeviceController(): |
170 | 170 | def log(self, device_name: str, message: str): |
171 | 171 | Log.objects.create(agent=self.name, message=message) |
172 | 172 | if DEBUG_FILE and settings.DEBUG: |
173 | - self.logger.info("From device : " + device_name + " -> " + message) | |
173 | + #self.logger.info("From device : " + device_name + " -> " + message) | |
174 | + pass | |
174 | 175 | return (0) |
175 | 176 | |
176 | 177 | def connect(self): | ... | ... |