diff --git a/iplocate.py b/iplocate.py index baf5196..d1791b5 100755 --- a/iplocate.py +++ b/iplocate.py @@ -168,7 +168,7 @@ def main(): muevelog+"%s" % "--start", shell=True) case '-c': - console.print('[bold yellow]Cargando logs en base de datos[/bold yellow]') + console.print('[bold yellow]Cargando logs en base de datos[/bold yellow]\n') sql_alch.carga_logs() case '-g': console.print('[yellow]Registro de datos de ipinfo[/yellow]') diff --git a/sql_alch.py b/sql_alch.py index 971f921..90b5d0a 100644 --- a/sql_alch.py +++ b/sql_alch.py @@ -146,7 +146,7 @@ def ip_registrada(ip): def carga_access_log(log): if os.path.exists(log): nombre_log = log.split('/')[-1] - console.print(f'[bold yellow]Registrando [[/bold yellow]{nombre_log}[bold yellow]][/bold yellow]') + console.print(f'[yellow]Registrando [[/yellow]{nombre_log}[yellow]][/yellow]') try: with open(log, 'r') as lista: try: @@ -208,7 +208,7 @@ def carga_access_log(log): time.sleep(0.05) except Exception as ex: print('Exception Progress: ', ex) - console.print('[bold green] - Carga completa.. borrando log[/bold green]\n') + console.print('[magenta] - Carga completa.. borrando log[/magenta]\n') os.remove(log) return True except: @@ -222,7 +222,7 @@ def carga_access_log(log): def carga_error_logs(log): if os.path.exists(log): nombre_log = log.split('/')[-1] - console.print(f'[bold yellow]Registrando [[/bold yellow]{nombre_log}[bold yellow]][/bold yellow]') + console.print(f'[yellow]Registrando [[/yellow]{nombre_log}[yellow]][/yellow]') try: #with Progress(), open(log, 'r') as lista: with open(log, 'r') as lista: @@ -300,7 +300,7 @@ def carga_error_logs(log): time.sleep(0.05) except Exception as ex: print('Exception Progress: ', ex) - console.print(f'[bold green] - Carga completa.. borrando log[/bold green]\n') + console.print(f'[magenta] - Carga completa.. borrando log[/magenta]\n') os.remove(log) return True except: