add log
This commit is contained in:
parent
8235caf9cf
commit
dc5d133ebd
@ -2629,10 +2629,12 @@ class GitSvnSyncApp:
|
|||||||
if status == 'success':
|
if status == 'success':
|
||||||
ahead, behind = result_value if isinstance(result_value, tuple) else (None, None)
|
ahead, behind = result_value if isinstance(result_value, tuple) else (None, None)
|
||||||
log_handler.log_info(f"Ahead/Behind status updated for '{local_branch_ctx}': Ahead={ahead}, Behind={behind}", func_name=func_name)
|
log_handler.log_info(f"Ahead/Behind status updated for '{local_branch_ctx}': Ahead={ahead}, Behind={behind}", func_name=func_name)
|
||||||
|
log_handler.log_debug(f"Calling update_ahead_behind_status with: branch='{local_branch_ctx}', ahead={ahead}, behind={behind}", func_name=func_name)
|
||||||
if hasattr(self.main_frame, "update_ahead_behind_status"):
|
if hasattr(self.main_frame, "update_ahead_behind_status"):
|
||||||
self.main_frame.update_ahead_behind_status(current_branch=local_branch_ctx, ahead=ahead, behind=behind)
|
self.main_frame.update_ahead_behind_status(current_branch=local_branch_ctx, ahead=ahead, behind=behind)
|
||||||
elif status == 'error':
|
elif status == 'error':
|
||||||
log_handler.log_error(f"Failed to get ahead/behind status for '{local_branch_ctx}': {message}", func_name=func_name)
|
log_handler.log_error(f"Failed to get ahead/behind status for '{local_branch_ctx}': {message}", func_name=func_name)
|
||||||
|
log_handler.log_debug(f"Calling update_ahead_behind_status with: branch='{local_branch_ctx}', status_text='Sync Status: Error'", func_name=func_name)
|
||||||
if hasattr(self.main_frame, "update_ahead_behind_status"):
|
if hasattr(self.main_frame, "update_ahead_behind_status"):
|
||||||
self.main_frame.update_ahead_behind_status(current_branch=local_branch_ctx, status_text=f"Sync Status: Error")
|
self.main_frame.update_ahead_behind_status(current_branch=local_branch_ctx, status_text=f"Sync Status: Error")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user