Skip to content

Commit

Permalink
Enable more logging
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Sep 8, 2024
1 parent 2964387 commit e7776bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/apps/core/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,9 @@ class RecTrainForm(BootstrapFormMixin, TrainMixin, DocumentProcessFormBase):
PROCESS_NAME = 'recognition training'

model_name = forms.CharField(required=False)
if False:
queryset = OcrModel.objects.filter(job=OcrModel.MODEL_JOB_RECOGNIZE)
logger.info(f'TRACE: {queryset=}')
model = forms.ModelChoiceField(queryset=OcrModel.objects.filter(job=OcrModel.MODEL_JOB_RECOGNIZE),
required=False)
transcription = forms.ModelChoiceField(queryset=Transcription.objects.all(), required=False)
Expand Down
1 change: 1 addition & 0 deletions app/escriptorium/local_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
# CELERY_TASK_ALWAYS_EAGER = True

# LOGGING['loggers']['kraken']['level'] = 'DEBUG'
LOGGING['handlers']['console_info']['level'] = 'DEBUG'

CUSTOM_HOME = True

Expand Down

0 comments on commit e7776bd

Please sign in to comment.