mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-13 08:15:21 +02:00
Add debugging logs in stachAuthService
This commit is contained in:
parent
695b43af28
commit
a5524dbbac
15 changed files with 299 additions and 56 deletions
|
|
@ -65,12 +65,12 @@ class MPSServiceKeyClient:
|
|||
data = response.json()
|
||||
# Transform the response to match our expected format
|
||||
return {
|
||||
"id": data.get("id"),
|
||||
"name": data.get("name"),
|
||||
"service_key": data.get("service_key"), # Only returned on creation
|
||||
"key_prefix": data.get("service_key", "")[:8]
|
||||
"id": data.get("id"),
|
||||
"name": data.get("name") or name,
|
||||
"service_key": data.get("service_key"),
|
||||
"key_prefix": data.get("key_prefix") or (data.get("service_key", "")[:8]
|
||||
if data.get("service_key")
|
||||
else "",
|
||||
else ""),
|
||||
"expires_at": data.get("expires_at"),
|
||||
"created_at": data.get("created_at"),
|
||||
"is_active": data.get("is_active", True),
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ from pipecat.services.openai.llm import OpenAILLMContext
|
|||
from pipecat.transports.base_transport import BaseTransport
|
||||
from pipecat.utils.enums import EndTaskReason
|
||||
|
||||
from api.constants import VOICEMAIL_RECORDING_DURATION
|
||||
from api.constants import DEPLOYMENT_MODE, ENABLE_TRACING, VOICEMAIL_RECORDING_DURATION
|
||||
from api.services.gender.gender_service import GenderService
|
||||
from api.services.workflow.disposition_mapper import (
|
||||
apply_disposition_mapping,
|
||||
|
|
@ -480,7 +480,9 @@ class PipecatEngine:
|
|||
async def _handle_start_node(self, node: Node) -> None:
|
||||
"""Handle start node execution."""
|
||||
# Handle voicemail detection setup (before any returns)
|
||||
if node.detect_voicemail:
|
||||
# Lets check ENABLE_TRACING to make sure we have prompt access from
|
||||
# langfuse
|
||||
if node.detect_voicemail and DEPLOYMENT_MODE == 'saas' and ENABLE_TRACING:
|
||||
if not self._audio_buffer:
|
||||
logger.warning(
|
||||
"Voicemail detection enabled but no audio buffer available - skipping detection"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue