diff --git a/app.py b/app.py index 4f2f4dc..7ed12ef 100644 --- a/app.py +++ b/app.py @@ -26,7 +26,7 @@ API_KEY = config['DEFAULT']['API_KEY'] bootstrap = Bootstrap5(app) -app.config['BOOTSTRAP_BOOTSWATCH_THEME'] = 'sandstone' +app.config['BOOTSTRAP_BOOTSWATCH_THEME'] = 'litera' # Initialize the logger logger = logging.getLogger(__name__) @@ -131,7 +131,7 @@ def tail(filename, n): yield '' return - page_size = config['LOGGING']['TAIL_PAGE_SIZE'] + page_size = int(config['LOGGING']['TAIL_PAGE_SIZE']) offsets = [] count = _n = n if n >= 0 else -n diff --git a/example_config.ini b/example_config.ini index 8c10e53..3008c2a 100644 --- a/example_config.ini +++ b/example_config.ini @@ -1,8 +1,13 @@ [DEFAULT] -SECRET_KEY = your_secret_key # Secret key for session management -API_KEY = your_api_key # API key for accessing the TORN API. Public key should be enough +# Secret key for session management +SECRET_KEY = your_secret_key +# API key for accessing the TORN API. Public key should be enough +API_KEY = your_api_key [LOGGING] -VIEW_MAX_LINES = 500 # Maximum number of lines to display in the log viewer -VIEW_PAGE_LINES = 50 # Number of lines to display per page in the log viewer -TAIL_PAGE_SIZE = 100 # Number of bytes to read at a time \ No newline at end of file +# Maximum number of lines to display in the log viewer +VIEW_MAX_LINES = 500 +# Number of lines to display per page in the log viewer +VIEW_PAGE_LINES = 50 +# Number of bytes to read at a time +TAIL_PAGE_SIZE = 100 \ No newline at end of file