feat: creatives and external channels

This commit is contained in:
Artem Tsyrulnikov
2025-11-10 15:13:38 +03:00
parent 3800c72662
commit cd167fdb43
73 changed files with 3024 additions and 947 deletions

View File

@@ -11,15 +11,16 @@ class JSONFormatter(logging.Formatter):
'message': record.getMessage(),
'module': record.module,
'package': record.name,
'app_name': record.app_name,
'app_version': record.app_version,
'app_name': getattr(record, 'app_name', 'unknown'),
'app_version': getattr(record, 'app_version', 'unknown'),
}
if record.levelno >= logging.ERROR:
log_data['location'] = f'{record.pathname}:{record.lineno}'
if record.exc_info:
log_data['error_type'] = record.exc_info[0].__name__
exc_type = record.exc_info[0]
log_data['error_type'] = exc_type.__name__ if exc_type else 'Unknown'
log_data['error_message'] = str(record.exc_info[1])
log_data['traceback'] = self.formatException(record.exc_info)