sync publication with debug messages

This commit is contained in:
Felix Kunde
2022-02-21 17:27:10 +01:00
parent 34cad4601d
commit 795cd5d4ec
2 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -633,7 +633,7 @@ func (c *Cluster) executeAlterPublication(pubName, tableList string) error {
func (c *Cluster) execCreateOrAlterPublication(pubName, tableList, statement, doing, operation string) error {
c.logger.Infof("%s %q with table list %q", doing, pubName, tableList)
c.logger.Debugf("%s %q with table list %q", doing, pubName, tableList)
if _, err := c.pgDb.Exec(fmt.Sprintf(statement, pubName, tableList)); err != nil {
return fmt.Errorf("could not execute %s: %v", operation, err)
}