Fix missing logging when using debug level
This commit is contained in:
@@ -14,7 +14,7 @@ def logger(message: str, log_type=0):
|
|||||||
output = str(message)
|
output = str(message)
|
||||||
if log_type == 0:
|
if log_type == 0:
|
||||||
pass
|
pass
|
||||||
elif log_type == 1 and (debug and debug_level == "info"):
|
elif log_type == 1 and (debug and debug_level in ("info", "debug")):
|
||||||
output = f"[INFO]: {output}"
|
output = f"[INFO]: {output}"
|
||||||
elif log_type == 2:
|
elif log_type == 2:
|
||||||
output = f"[ERROR]: {output}"
|
output = f"[ERROR]: {output}"
|
||||||
|
|||||||
@@ -125,8 +125,8 @@ def setup_users(
|
|||||||
server_1_connection = server_1[1]
|
server_1_connection = server_1[1]
|
||||||
server_2_type = server_2[0]
|
server_2_type = server_2[0]
|
||||||
server_2_connection = server_2[1]
|
server_2_connection = server_2[1]
|
||||||
print(f"Server 1: {server_1_type} {server_1_connection}")
|
logger(f"Server 1: {server_1_type} {server_1_connection}", 0)
|
||||||
print(f"Server 2: {server_2_type} {server_2_connection}")
|
logger(f"Server 2: {server_2_type} {server_2_connection}", 0)
|
||||||
|
|
||||||
server_1_users = []
|
server_1_users = []
|
||||||
if server_1_type == "plex":
|
if server_1_type == "plex":
|
||||||
@@ -419,7 +419,6 @@ def main_loop():
|
|||||||
|
|
||||||
# Start server_2 at the next server in the list
|
# Start server_2 at the next server in the list
|
||||||
for server_2 in servers[servers.index(server_1) + 1 :]:
|
for server_2 in servers[servers.index(server_1) + 1 :]:
|
||||||
|
|
||||||
server_1_connection = server_1[1]
|
server_1_connection = server_1[1]
|
||||||
server_2_connection = server_2[1]
|
server_2_connection = server_2[1]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user