##// END OF EJS Templates
action_logger: removed really not required actions of start/stop following a repository....
marcink -
r1804:4a92b08c default
parent child Browse files
Show More
@@ -47,7 +47,7 b' from rhodecode.lib.auth import ('
47 from rhodecode.lib.exceptions import NonRelativePathError, IMCCommitError
47 from rhodecode.lib.exceptions import NonRelativePathError, IMCCommitError
48 from rhodecode.lib import hooks_utils, caches
48 from rhodecode.lib import hooks_utils, caches
49 from rhodecode.lib.utils import (
49 from rhodecode.lib.utils import (
50 get_filesystem_repos, action_logger, make_db_config)
50 get_filesystem_repos, make_db_config)
51 from rhodecode.lib.utils2 import (safe_str, safe_unicode)
51 from rhodecode.lib.utils2 import (safe_str, safe_unicode)
52 from rhodecode.lib.system_info import get_system_info
52 from rhodecode.lib.system_info import get_system_info
53 from rhodecode.model import BaseModel
53 from rhodecode.model import BaseModel
@@ -289,9 +289,6 b' class ScmModel(BaseModel):'
289 if f is not None:
289 if f is not None:
290 try:
290 try:
291 self.sa.delete(f)
291 self.sa.delete(f)
292 action_logger(UserTemp(user_id),
293 'stopped_following_repo',
294 RepoTemp(follow_repo_id))
295 return
292 return
296 except Exception:
293 except Exception:
297 log.error(traceback.format_exc())
294 log.error(traceback.format_exc())
@@ -302,10 +299,6 b' class ScmModel(BaseModel):'
302 f.user_id = user_id
299 f.user_id = user_id
303 f.follows_repo_id = follow_repo_id
300 f.follows_repo_id = follow_repo_id
304 self.sa.add(f)
301 self.sa.add(f)
305
306 action_logger(UserTemp(user_id),
307 'started_following_repo',
308 RepoTemp(follow_repo_id))
309 except Exception:
302 except Exception:
310 log.error(traceback.format_exc())
303 log.error(traceback.format_exc())
311 raise
304 raise
General Comments 0
You need to be logged in to leave comments. Login now