[IMP] runbot: adding some log

This commit is contained in:
Xavier-Do 2019-12-18 17:37:06 +01:00
parent 9ae816a23d
commit 328ba2d9c2
2 changed files with 3 additions and 1 deletions

View File

@ -57,6 +57,8 @@ class RunboHost(models.Model):
return int(icp.get_param('runbot.runbot_running_max', default=75))
def set_psql_conn_count(self):
_logger.debug('Updating psql connection count...')
self.ensure_one()
with local_pgadmin_cursor() as local_cr:
local_cr.execute("SELECT sum(numbackends) FROM pg_stat_database;")

View File

@ -37,7 +37,7 @@ class RunbotClient():
self.env['runbot.build']._local_cleanup()
self.env['runbot.repo']._docker_cleanup()
host.set_psql_conn_count()
_logger.debug('Scheduling...')
_logger.info('Scheduling...')
count += 1
sleep_time = self.env['runbot.repo']._scheduler_loop_turn(host)
host.last_end_loop = fields.Datetime.now()