mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-18 15:22:05 -04:00
set logging to INFO and updated log message
This commit is contained in:
1 parent
b281652009
commit
8ae8d6aa27
1 file changed
+2
-2
@@ -32,7 +32,7 @@ logging.basicConfig(
|
||||
format='%(asctime)s:%(levelname)s:%(name)s:%(message)s'
|
||||
)
|
||||
unifi_logger = logging.getLogger('[UNIFI]')
|
||||
unifi_logger.setLevel(logging.DEBUG)
|
||||
unifi_logger.setLevel(logging.INFO)
|
||||
|
||||
|
||||
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
|
||||
@@ -87,7 +87,7 @@ def main():
|
||||
# Insert list into the log
|
||||
service_monitoring_log(e.primaryId, e.secondaryId, e.created, e.watched1, e.watched2, e.watched3, e.watched4, e.extra, e.foreignKey )
|
||||
|
||||
unifi_logger.info(f'Scan finished, added {len(newEntries)} devices')
|
||||
unifi_logger.info(f'Scan finished, found {len(newEntries)} devices')
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
def get_entries(newEntries):
|
||||
|
||||
Reference in new issue
Block a user