Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lmfdb/abvar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

abvar_page = Blueprint(
"abvar", __name__, template_folder="templates", static_folder="static"
)
abvar_logger = make_logger(abvar_page)


@abvar_page.context_processor
Expand Down
2 changes: 0 additions & 2 deletions lmfdb/abvar/fq/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

abvarfq_page = Blueprint("abvarfq", __name__, template_folder="templates", static_folder="static")
abvarfq_logger = make_logger(abvarfq_page)


@abvarfq_page.context_processor
Expand Down
4 changes: 0 additions & 4 deletions lmfdb/abvar/fq/isog_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from collections import Counter

from lmfdb.utils import encode_plot, display_float
from lmfdb.logger import make_logger

from lmfdb import db
from lmfdb.app import app
Expand Down Expand Up @@ -44,9 +43,6 @@ def maxq(g, p):
return maxgen[g]


logger = make_logger("abvarfq")


#########################
# Label manipulation
#########################
Expand Down
3 changes: 0 additions & 3 deletions lmfdb/abvar/fq/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from sage.databases.cremona import cremona_letter_code

from lmfdb import db
from lmfdb.logger import make_logger
from lmfdb.utils import (
to_dict, flash_error, integer_options, display_knowl, coeff_to_poly,
SearchArray, TextBox, TextBoxWithSelect, SkipBox, CheckBox, CheckboxSpacer, YesNoBox,
Expand All @@ -25,8 +24,6 @@
from lmfdb.abvar.fq.download import AbvarFq_download
from lmfdb.utils.search_parsing import parse_primes

logger = make_logger("abvarfq")

#########################
# Top level
#########################
Expand Down
2 changes: 0 additions & 2 deletions lmfdb/abvar/fq/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
from lmfdb import db
from lmfdb.utils import comma, display_knowl, StatsDisplay, proportioners, totaler
from psycodict.utils import range_formatter
from lmfdb.logger import make_logger
from sage.misc.lazy_attribute import lazy_attribute
from sage.misc.cachefunc import cached_method

logger = make_logger("abvarfq")
def yn(t):
return "yes" if (t and t != "no") else "no"
def ynu(t):
Expand Down
2 changes: 0 additions & 2 deletions lmfdb/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

api_page = Blueprint("API", __name__, template_folder='templates', static_folder="static")
api_logger = make_logger(api_page)

@api_page.context_processor
def body_class():
Expand Down
5 changes: 3 additions & 2 deletions lmfdb/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
from psycodict.encoding import Json
from lmfdb.utils import flash_error, comma
from lmfdb.utils.datetime_utils import utc_now_naive
from lmfdb.logger import logger
from flask import (render_template, request, url_for, current_app,
abort, redirect, Response)
from lmfdb.api import api_page, api_logger
from lmfdb.api import api_page


buffer = memoryview
Expand Down Expand Up @@ -221,7 +222,7 @@ def apierror(msg, flash_extras=[], code=404, table=True):
if offset:
return apierror("Cannot include offset with id")
single_object = True
api_logger.info("API query: id = '%s', fields = '%s'" % (id, fields))
logger.info("API query: id = '%s', fields = '%s'" % (id, fields))
if re.match(r'^\d+$', id):
id = int(id)
else:
Expand Down
2 changes: 0 additions & 2 deletions lmfdb/api2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

from lmfdb.app import app
assert app # keeps pyflakes happy
from lmfdb.logger import make_logger
assert make_logger # keeps pyflakes happy
from flask import Blueprint

__version__ = "1.0.0"
Expand Down
4 changes: 1 addition & 3 deletions lmfdb/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from sage.all import cached_function
# acknowledgment page, reads info from CONTRIBUTORS.yaml

from .logger import logger_file_handler, critical
from .logger import critical
from .homepage import load_boxes, contribs

LMFDB_VERSION = "LMFDB Release 1.2.1"
Expand Down Expand Up @@ -80,8 +80,6 @@ def is_running():
############################


app.logger.addHandler(logger_file_handler())

# If the debug toolbar is installed then use it
if app.debug:
try:
Expand Down
5 changes: 0 additions & 5 deletions lmfdb/artin_representations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

artin_representations_page = Blueprint(
"artin_representations", __name__, template_folder='templates', static_folder="static")
artin_logger = make_logger("artin", hl=True)

# artin_logger.info("Initializing Artin representations blueprint")


@artin_representations_page.context_processor
def body_class():
Expand Down
3 changes: 0 additions & 3 deletions lmfdb/artin_representations/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
group_pretty_and_nTj)

from lmfdb.artin_representations import artin_representations_page
#from lmfdb.artin_representations import artin_logger
from lmfdb.artin_representations.math_classes import (
ArtinRepresentation, num2letters, artin_label_pretty)

Expand Down Expand Up @@ -339,8 +338,6 @@ def render_artin_representation_webpage(label):
label = newlabel
bread = get_bread([(artin_label_pretty(label), ' ')])

#artin_logger.info("Found %s" % (the_rep._data))

if case == 'rep':
title = "Artin representation %s" % label
else:
Expand Down
2 changes: 0 additions & 2 deletions lmfdb/belyi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

belyi_page = Blueprint(
"belyi", __name__, template_folder="templates", static_folder="static"
)
belyi_logger = make_logger(belyi_page)


@belyi_page.context_processor
Expand Down
2 changes: 0 additions & 2 deletions lmfdb/bianchi_modular_forms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

bmf_page = Blueprint("bmf", __name__, template_folder='templates', static_folder="static")
bmf_logger = make_logger(bmf_page)


@bmf_page.context_processor
Expand Down
4 changes: 0 additions & 4 deletions lmfdb/bianchi_modular_forms/web_BMF.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from lmfdb import db
from lmfdb.logger import make_logger
from lmfdb.number_fields.web_number_field import nf_display_knowl, field_pretty
from lmfdb.elliptic_curves.web_ec import split_lmfdb_label
from lmfdb.nfutils.psort import primes_iter, ideal_from_label, ideal_label, prime_key
Expand All @@ -9,8 +8,6 @@
from flask import url_for
from sage.all import QQ, PolynomialRing, NumberField

logger = make_logger("bmf")

# BMFs which have no elliptic curve: since 2025-03-31 there is a
# column 'curve_status' in table bmf_forms containing
# +1 if there is a matching curve in ec_nfcurves
Expand Down Expand Up @@ -121,7 +118,6 @@ def __init__(self, dbdata, max_eigs=50):
is initialised.

"""
logger.debug("Constructing an instance of WebBMF class from database")
self.__dict__.update(dbdata)
# All other fields are handled here
self.make_form(max_eigs)
Expand Down
3 changes: 1 addition & 2 deletions lmfdb/characters/TinyConrey.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
pari,DirichletGroup, CyclotomicField, euler_phi, lcm)
from sage.misc.cachefunc import cached_method
from sage.modular.dirichlet import DirichletCharacter
from lmfdb.logger import make_logger
logger = make_logger("TinyConrey")
from lmfdb.logger import logger

def symbol_numerator(cond, parity):
# Reference: Sect. 9.3, Montgomery, Hugh L; Vaughan, Robert C. (2007).
Expand Down
2 changes: 0 additions & 2 deletions lmfdb/characters/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

characters_page = Blueprint("characters", __name__, template_folder='templates',
static_folder="static")
logger = make_logger(characters_page)


@characters_page.context_processor
Expand Down
3 changes: 1 addition & 2 deletions lmfdb/characters/web_character.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,12 @@
from lmfdb import db
from lmfdb.utils import prop_int_pretty
from lmfdb.utils.utilities import num2letters
from lmfdb.logger import make_logger
from lmfdb.number_fields.web_number_field import WebNumberField, formatfield, nf_display_knowl
from lmfdb.characters.TinyConrey import (ConreyCharacter, kronecker_symbol,
symbol_numerator, PariConreyGroup, get_sage_genvalues)
from lmfdb.characters.utils import url_character, complex2str
from lmfdb.groups.abstract.main import abstract_group_display_knowl
logger = make_logger("DC")
from lmfdb.logger import logger


def parity_string(n):
Expand Down
2 changes: 0 additions & 2 deletions lmfdb/classical_modular_forms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

cmf_page = Blueprint("cmf", __name__, template_folder='templates', static_folder="static")
cmf = cmf_page
cmf_logger = make_logger(cmf_page)

from . import main
assert main # silence pyflakes
Expand Down
10 changes: 5 additions & 5 deletions lmfdb/classical_modular_forms/cmf_test_pages.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

from lmfdb.tests import LmfdbTest
from lmfdb.lmfdb_database import LMFDBDatabase
from lmfdb.logger import logger
from sage.parallel.decorate import parallel
from sage.all import ZZ, sqrt, ceil, gp
import multiprocessing
from traceback import print_exc
import logging
import time

ncpus = min(multiprocessing.cpu_count(), 10)
Expand Down Expand Up @@ -40,9 +40,9 @@ def newform(self, label, dim):

@parallel(ncpus=ncpus)
def all_newforms(self, level, weight):
logging.getLogger().disabled = True
logger.disabled = True
db = LMFDBDatabase()
logging.getLogger().disabled = False
logger.disabled = False
res = []
errors = []
n = 0
Expand All @@ -62,9 +62,9 @@ def all_newforms(self, level, weight):

@parallel(ncpus=ncpus)
def all_newspaces(self, level, weight):
logging.getLogger().disabled = True
logger.disabled = True
db = LMFDBDatabase()
logging.info.disabled = False
logger.disabled = False
errors = []
res = []
n = 0
Expand Down
3 changes: 0 additions & 3 deletions lmfdb/classical_modular_forms/test_cmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
from lmfdb.tests import LmfdbTest
import unittest

from . import cmf_logger
cmf_logger.setLevel(100)


class CmfTest(LmfdbTest):
def runTest(self):
Expand Down
3 changes: 0 additions & 3 deletions lmfdb/classical_modular_forms/test_cmf2.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@

from lmfdb.tests import LmfdbTest

from . import cmf_logger
cmf_logger.setLevel(100)


class CmfTest(LmfdbTest):
def runTest(self):
Expand Down
4 changes: 0 additions & 4 deletions lmfdb/cluster_pictures/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@


# cp_logger = make_logger(cp_page)

from . import cluster_picture
assert cluster_picture
2 changes: 0 additions & 2 deletions lmfdb/cluster_pictures/cluster_picture.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from lmfdb.cluster_pictures.web_cluster_picture import (
cp_knowl_guts)

# assert cp_logger

CP_credit = 'Alex Best, Raymond van Bommel'
Completename = 'Completeness of the data'
dnc = 'data not computed'
Expand Down
2 changes: 0 additions & 2 deletions lmfdb/cluster_pictures/web_cluster_picture.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from lmfdb import db
from lmfdb.logger import make_logger
wcplog = make_logger("WCP")


def cp_display_knowl(label, name=None, img=None):
Expand Down
2 changes: 0 additions & 2 deletions lmfdb/crystals/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

crystals_page = Blueprint("crystals", __name__, template_folder='templates', static_folder="static")
logger = make_logger(crystals_page)


@crystals_page.context_processor
Expand Down
3 changes: 2 additions & 1 deletion lmfdb/crystals/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# Author: Anne Schilling (lead), Mike Hansen, Harald Schilly

from flask import render_template, request, url_for, make_response, redirect
from lmfdb.crystals import crystals_page, logger
from lmfdb.crystals import crystals_page
from lmfdb.logger import logger


def get_bread(breads=[]):
Expand Down
2 changes: 0 additions & 2 deletions lmfdb/ecnf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

ecnf_page = Blueprint("ecnf", __name__, template_folder='templates', static_folder="static")
logger = make_logger(ecnf_page)


@ecnf_page.context_processor
Expand Down
3 changes: 0 additions & 3 deletions lmfdb/ecnf/ecnf_stats.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from lmfdb.app import app
from lmfdb.utils import comma, StatsDisplay, proportioners, totaler
from lmfdb.logger import make_logger
from lmfdb.number_fields.number_field import field_pretty
from lmfdb import db
from flask import url_for
Expand All @@ -25,8 +24,6 @@ def sort_field(F):
"""
return [int(c) for c in F.split(".")]

logger = make_logger("ecnf")

def latex_tor(t):
if isinstance(t, str):
# This is used in formatting stats, and we need it to process the output.
Expand Down
Loading
Loading