mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
unified logger
This commit is contained in:
@@ -6,6 +6,7 @@ from typing import Any
|
||||
from fastapi import FastAPI
|
||||
from gradio import Blocks
|
||||
import modules.errors as errors
|
||||
from modules import logger
|
||||
|
||||
|
||||
def report_exception(e, c, job):
|
||||
@@ -141,7 +142,7 @@ def print_timers():
|
||||
if v > 0.05:
|
||||
long_callbacks.append(f'{k}={v:.2f}')
|
||||
if len(long_callbacks) > 0:
|
||||
errors.log.debug(f'Script init: {long_callbacks}')
|
||||
logger.log.debug(f'Script init: {long_callbacks}')
|
||||
|
||||
|
||||
def clear_callbacks():
|
||||
|
||||
Reference in New Issue
Block a user