1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-10 01:17:59 +03:00

Some minor fixes ond debug info provided

This commit is contained in:
Adolfo Gómez García 2024-04-01 04:16:51 +02:00
parent a13b4431d0
commit e0acbabcd2
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
3 changed files with 5 additions and 5 deletions

View File

@ -200,7 +200,7 @@ class DynamicUserService(services.UserService, autoserializable.AutoSerializable
"""
self._error_debug_info = self._debug(repr(reason))
reason = str(reason)
logger.debug('Setting error state, reason: %s', reason)
logger.debug('Setting error state, reason: %s (%s)', reason, self._queue, stack_info=True, stacklevel=3)
self.do_log(log.LogLevel.ERROR, reason)
if self._vmid:

View File

@ -104,7 +104,7 @@ class FixedUserService(services.UserService, autoserializable.AutoSerializable,
State.ERROR, so we can do "return self._error(reason)"
"""
reason = str(reason)
logger.debug('Setting error state, reason: %s (%s)', reason, self._queue, stack_info=True)
logger.debug('Setting error state, reason: %s (%s)', reason, self._queue, stack_info=True, stacklevel=3)
self.do_log(log.LogLevel.ERROR, reason)
if self._vmid:

View File

@ -400,7 +400,7 @@ def create_provider(**kwargs: typing.Any) -> provider.OpenStackProvider:
uuid_ = str(uuid.uuid4())
return provider.OpenStackProvider(
environment=environment.Environment.private_environment(uuid), values=values, uuid=uuid_
environment=environment.Environment.private_environment(uuid_), values=values, uuid=uuid_
)
@ -413,7 +413,7 @@ def create_provider_legacy(**kwargs: typing.Any) -> provider_legacy.OpenStackPro
uuid_ = str(uuid.uuid4())
return provider_legacy.OpenStackProviderLegacy(
environment=environment.Environment.private_environment(uuid), values=values, uuid=uuid_
environment=environment.Environment.private_environment(uuid_), values=values, uuid=uuid_
)
@ -427,7 +427,7 @@ def create_live_service(provider: AnyOpenStackProvider, **kwargs: typing.Any) ->
uuid_ = str(uuid.uuid4())
return service.OpenStackLiveService(
provider=provider,
environment=environment.Environment.private_environment(uuid),
environment=environment.Environment.private_environment(uuid_),
values=values,
uuid=uuid_,
)