remove debug loging
This commit is contained in:
@@ -16,7 +16,6 @@ import argparse
|
|||||||
import threading
|
import threading
|
||||||
import update
|
import update
|
||||||
import config
|
import config
|
||||||
import logging
|
|
||||||
|
|
||||||
# get device host name - used in mqtt topic
|
# get device host name - used in mqtt topic
|
||||||
hostname = socket.gethostname()
|
hostname = socket.gethostname()
|
||||||
@@ -148,7 +147,6 @@ def get_manufacturer():
|
|||||||
|
|
||||||
def check_git_update(script_dir):
|
def check_git_update(script_dir):
|
||||||
remote_version = update.check_git_version_remote(script_dir)
|
remote_version = update.check_git_version_remote(script_dir)
|
||||||
logging.info("git_update value:" + remote_version)
|
|
||||||
if config.version == remote_version:
|
if config.version == remote_version:
|
||||||
git_update = {
|
git_update = {
|
||||||
"installed_ver": config.version,
|
"installed_ver": config.version,
|
||||||
@@ -612,7 +610,6 @@ exit_flag = False
|
|||||||
stop_event = threading.Event()
|
stop_event = threading.Event()
|
||||||
script_dir = os.path.dirname(os.path.realpath(__file__))
|
script_dir = os.path.dirname(os.path.realpath(__file__))
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
logging.basicConfig(level=logging.INFO, stream=sys.stdout)
|
|
||||||
args = parse_arguments();
|
args = parse_arguments();
|
||||||
|
|
||||||
if args.service:
|
if args.service:
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import ast
|
|||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import config
|
import config
|
||||||
import logging
|
|
||||||
|
|
||||||
def get_assignments(filename):
|
def get_assignments(filename):
|
||||||
with open(filename) as f:
|
with open(filename) as f:
|
||||||
@@ -58,7 +57,6 @@ def check_git_version_remote(script_dir):
|
|||||||
return config.version
|
return config.version
|
||||||
|
|
||||||
latest_tag = result.strip()
|
latest_tag = result.strip()
|
||||||
logging.info("git update:" + result + script_dir)
|
|
||||||
return latest_tag if latest_tag else "0"
|
return latest_tag if latest_tag else "0"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user