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 @@ -781,6 +781,7 @@ def start_patroni(self) -> bool:
781
781
Whether the service started successfully.
782
782
"""
783
783
try :
784
+ logger .debug ("Starting Patroni..." )
784
785
cache = snap .SnapCache ()
785
786
selected_snap = cache ["charmed-postgresql" ]
786
787
selected_snap .start (services = ["patroni" ])
@@ -800,6 +801,7 @@ def patroni_logs(self, num_lines: int | str | None = 10) -> str:
800
801
Multi-line logs string.
801
802
"""
802
803
try :
804
+ logger .debug ("Getting Patroni logs..." )
803
805
cache = snap .SnapCache ()
804
806
selected_snap = cache ["charmed-postgresql" ]
805
807
# Lib definition of num_lines only allows int
@@ -836,6 +838,7 @@ def stop_patroni(self) -> bool:
836
838
Whether the service stopped successfully.
837
839
"""
838
840
try :
841
+ logger .debug ("Stopping Patroni..." )
839
842
cache = snap .SnapCache ()
840
843
selected_snap = cache ["charmed-postgresql" ]
841
844
selected_snap .stop (services = ["patroni" ])
@@ -1054,6 +1057,7 @@ def restart_patroni(self) -> bool:
1054
1057
Whether the service restarted successfully.
1055
1058
"""
1056
1059
try :
1060
+ logger .debug ("Restarting Patroni..." )
1057
1061
cache = snap .SnapCache ()
1058
1062
selected_snap = cache ["charmed-postgresql" ]
1059
1063
selected_snap .restart (services = ["patroni" ])
You can’t perform that action at this time.
0 commit comments