On 22/11/13 11:02, Jamil Atta Junior wrote:
> In balaio/monitor.py:
>
>> @@ -33,6 +34,16 @@ def __init__(self, workers=None):
>>          self.Session = models.Session
>>          self.Session.configure(bind=models.create_engine_from_config(self.config))
>>
>> +        while True:
>> +            try:
>> +                self.stream = utils.get_writable_socket()
>> +                break
>> +            except socket.error as e:
>> +                logger.info('Trying to estabilish connection with module `validator`. Please wait...')
>> +                time.sleep(0.5)
>> +            finally:
>
> Não deveriam ser um |else| para informar o log somente quando foi
> realmente a sock conectou.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/scieloorg/balaio/pull/178/files#r7855055>.
>
Fato! valeu.