File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -783,6 +783,7 @@ def start_patroni(self) -> bool:
783
783
Whether the service started successfully.
784
784
"""
785
785
try :
786
+ logger .debug ("Starting Patroni..." )
786
787
cache = snap .SnapCache ()
787
788
selected_snap = cache ["charmed-postgresql" ]
788
789
selected_snap .start (services = ["patroni" ])
@@ -802,6 +803,7 @@ def patroni_logs(self, num_lines: int | str | None = 10) -> str:
802
803
Multi-line logs string.
803
804
"""
804
805
try :
806
+ logger .debug ("Getting Patroni logs..." )
805
807
cache = snap .SnapCache ()
806
808
selected_snap = cache ["charmed-postgresql" ]
807
809
# Lib definition of num_lines only allows int
@@ -838,6 +840,7 @@ def stop_patroni(self) -> bool:
838
840
Whether the service stopped successfully.
839
841
"""
840
842
try :
843
+ logger .debug ("Stopping Patroni..." )
841
844
cache = snap .SnapCache ()
842
845
selected_snap = cache ["charmed-postgresql" ]
843
846
selected_snap .stop (services = ["patroni" ])
@@ -1056,6 +1059,7 @@ def restart_patroni(self) -> bool:
1056
1059
Whether the service restarted successfully.
1057
1060
"""
1058
1061
try :
1062
+ logger .debug ("Restarting Patroni..." )
1059
1063
cache = snap .SnapCache ()
1060
1064
selected_snap = cache ["charmed-postgresql" ]
1061
1065
selected_snap .restart (services = ["patroni" ])
You can’t perform that action at this time.
0 commit comments