@@ -10,7 +10,6 @@ use crate::{
1010use anyhow:: Result ;
1111use asyncgit:: { sync, CWD } ;
1212use crossterm:: event:: { Event , KeyCode } ;
13- use log:: error;
1413use strings:: commands;
1514use sync:: HookResult ;
1615use tui:: { backend:: Backend , layout:: Rect , Frame } ;
@@ -104,7 +103,7 @@ impl CommitComponent {
104103 if let HookResult :: NotOk ( e) =
105104 sync:: hooks_commit_msg ( CWD , & mut msg) ?
106105 {
107- error ! ( "commit-msg hook error: {}" , e) ;
106+ log :: error!( "commit-msg hook error: {}" , e) ;
108107 self . queue . borrow_mut ( ) . push_back (
109108 InternalEvent :: ShowErrorMsg ( format ! (
110109 "commit-msg hook error:\n {}" ,
@@ -115,7 +114,7 @@ impl CommitComponent {
115114 }
116115
117116 if let Err ( e) = sync:: commit ( CWD , & msg) {
118- error ! ( "commit error: {}" , & e) ;
117+ log :: error!( "commit error: {}" , & e) ;
119118 self . queue . borrow_mut ( ) . push_back (
120119 InternalEvent :: ShowErrorMsg ( format ! (
121120 "commit failed:\n {}" ,
@@ -126,7 +125,7 @@ impl CommitComponent {
126125 }
127126
128127 if let HookResult :: NotOk ( e) = sync:: hooks_post_commit ( CWD ) ? {
129- error ! ( "post-commit hook error: {}" , e) ;
128+ log :: error!( "post-commit hook error: {}" , e) ;
130129 self . queue . borrow_mut ( ) . push_back (
131130 InternalEvent :: ShowErrorMsg ( format ! (
132131 "post-commit hook error:\n {}" ,
0 commit comments