Skip to content

Commit 4ee0064

Browse files
committed
fix: reverting plugin log output formatting
1 parent 8e6e9c7 commit 4ee0064

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mamonsu/plugins/pgsql/plugin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,22 @@ def extension_schema(self, extension, db=None):
4040
def disable_and_exit_if_extension_is_not_installed(self, ext, db=None):
4141
if not self.extension_installed(ext, db=db, silent=True):
4242
self.disable()
43-
raise PluginDisableException("""Disable plugin and exit, because '{0}'
43+
raise PluginDisableException("""Disable plugin and exit, because '{0}' \
4444
extension is not installed. Enable it in PostgreSQL instance: '{1}',
4545
if needed and restart.""".format(ext, Pooler.connection_string(db)))
4646

4747
def disable_and_exit_if_not_pgpro_ee(self, db=None):
4848
if not Pooler.is_pgpro_ee(db):
4949
self.disable()
50-
raise PluginDisableException("""Disable plugin and exit, because
50+
raise PluginDisableException("""Disable plugin and exit, because \
5151
PostgresPro Enterprise Edition is not detected [instance: '{0}']
5252
""".format(Pooler.connection_string(db)))
5353

5454
def disable_and_exit_if_archive_mode_is_not_on(self, db=None):
5555
param = Pooler.get_sys_param('archive_mode', db=db)
5656
if param != 'on' and param != 'always':
5757
self.disable()
58-
raise PluginDisableException("""Disable plugin and exit, because '{0}'
59-
parameter is neither 'on' nor 'always'. Enable it "{1}" or "{2}" in PostgreSQL instance,
58+
raise PluginDisableException("""Disable plugin and exit, because '{0}' \
59+
parameter is neither 'on' nor 'always'. Enable it "{1}" or "{2}" in PostgreSQL instance, \
6060
if needed and restart.""".format('archive_mode', 'alter system set archive_mode = on;',
6161
'alter system set archive_mode = always;'))

0 commit comments

Comments
 (0)