improve logs

This commit is contained in:
Gonzalo Riestra 2019-03-13 18:16:08 +01:00
parent bc5d532735
commit 3faa389860
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ AS $$
except Exception as err:
error = "client_error - %s" % str(err)
# NOTE: no retries on connection error
plpy.warning('Invalidation Service connection error: ' + str(err))
plpy.warning('Error trying to connect to Invalidation Service to link Ghost Tables: ' + str(err))
break
try:
@ -43,7 +43,7 @@ AS $$
error = "request_error - %s" % str(err)
client = GD['invalidation'] = None # force reconnect
if not tis_retry:
plpy.warning('Invalidation Service error: ' + str(err))
plpy.warning('Error calling Invalidation Service to link Ghost Tables: ' + str(err))
break
tis_retry -= 1 # try reconnecting
$$ LANGUAGE 'plpythonu' VOLATILE PARALLEL UNSAFE;

View File

@ -3,7 +3,7 @@
NOTICE: _CDB_LinkGhostTables() called with username=fulanito, event_name=USER
WARNING: Invalidation Service error: Error -2 connecting fake-tis-host:3142. Name or service not known.
WARNING: Error calling Invalidation Service to link Ghost Tables: Error -2 connecting fake-tis-host:3142. Name or service not known.
NOTICE: _CDB_LinkGhostTables() called with username=fulanito, event_name=USER
BEGIN
@ -11,7 +11,7 @@ cdb_ddl_execution
0
CREATE TABLE
1
WARNING: Invalidation Service error: Error -2 connecting fake-tis-host:3142. Name or service not known.
WARNING: Error calling Invalidation Service to link Ghost Tables: Error -2 connecting fake-tis-host:3142. Name or service not known.
NOTICE: _CDB_LinkGhostTables() called with username=fulanito, event_name=CREATE TABLE
COMMIT