Enhance myTischtennis URL controller with improved error handling and logging

Updated MyTischtennisUrlController to include detailed error messages for missing user IDs and team configurations. Added logging for session details and automatic login attempts, improving debugging capabilities. Enhanced request logging for API calls to myTischtennis, ensuring all requests are logged, even in case of errors. Updated requestLoggingMiddleware to only log myTischtennis-related requests, streamlining log management. Improved validation checks in autoFetchMatchResultsService for team and league data integrity.
This commit is contained in:
Torsten Schulz (local)
2025-10-29 18:07:43 +01:00
parent c2b8656783
commit 89329607dc
5 changed files with 295 additions and 50 deletions

View File

@@ -7,6 +7,15 @@
<div class="filters-section">
<div class="filter-controls">
<div class="filter-group">
<label>Backend:</label>
<select v-model="filters.backend" class="filter-select">
<option value="">Alle</option>
<option value="mytischtennis">myTischtennis</option>
<option value="own">Eigenes Backend</option>
</select>
</div>
<div class="filter-group">
<label>Log-Typ:</label>
<select v-model="filters.logType" class="filter-select">
@@ -202,6 +211,7 @@ export default {
const lastLoadTime = ref(null);
const filters = ref({
backend: '',
logType: '',
method: '',
statusCode: '',
@@ -232,6 +242,18 @@ export default {
...filters.value
};
// Convert backend filter to path filter
if (params.backend === 'mytischtennis') {
params.path = '/mytischtennis';
delete params.backend;
} else if (params.backend === 'own') {
// Exclude myTischtennis paths
params.path = 'NOT:/mytischtennis';
delete params.backend;
} else {
delete params.backend;
}
// Remove empty filters
Object.keys(params).forEach(key => {
if (params[key] === '' || params[key] === null) {
@@ -266,6 +288,7 @@ export default {
const clearFilters = () => {
filters.value = {
backend: '',
logType: '',
method: '',
statusCode: '',