Skip to content

Commit

Permalink
[logger] Switch info logger level to debug
Browse files Browse the repository at this point in the history
changes proposed as checkout logs would affect the relevancy of the produced logs during the execution

Signed-off-by: inishchith <inishchith@gmail.com>
  • Loading branch information
inishchith committed Jun 4, 2019
1 parent 58bf319 commit e61cb0a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions graal/graal.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def worktree(self, worktreepath, branch=None):

try:
self._exec(cmd_worktree, cwd=self.dirpath, env=self.gitenv)
logger.info("Git worktree %s created!" % self.worktreepath)
logger.debug("Git worktree %s created!" % self.worktreepath)
return
except Exception:
pass
Expand All @@ -309,7 +309,7 @@ def prune(self):
cmd_worktree = ['git', 'worktree', 'prune']
try:
self._exec(cmd_worktree, cwd=self.dirpath, env=self.gitenv)
logger.info("Git worktree %s deleted!" % self.worktreepath)
logger.debug("Git worktree %s deleted!" % self.worktreepath)
except Exception:
cause = "Impossible to delete the worktree %s" % (self.worktreepath)
raise RepositoryError(cause=cause)
Expand All @@ -322,7 +322,7 @@ def checkout(self, hash):
cmd_checkout = ['git', 'checkout', hash]
try:
self._exec(cmd_checkout, cwd=self.worktreepath, env=self.gitenv)
logger.info("Git repository %s checked out!" % self.dirpath)
logger.debug("Git repository %s checked out!" % self.dirpath)
except Exception:
cause = "Impossible to checkout the worktree %s at %s" % (self.worktreepath, hash)
raise RepositoryError(cause=cause)
Expand Down Expand Up @@ -389,7 +389,7 @@ def tar(tar_obj, dest):
tar.addfile(member)
tar.close()

logger.info("Tar file created at %s" % dest)
logger.debug("Tar file created at %s" % dest)

@staticmethod
def exists(dest):
Expand All @@ -411,7 +411,7 @@ def untar(tar_obj, dest):
os.mkdir(dest)

tar_obj.extractall(path=dest)
logger.info("Tar object untarred at %s" % dest)
logger.debug("Tar object untarred at %s" % dest)

@staticmethod
def extension(file_path):
Expand Down Expand Up @@ -448,7 +448,7 @@ def delete(target_path):
else:
os.remove(target_path)

logger.info("%s deleted!" % target_path)
logger.debug("%s deleted!" % target_path)


class GraalCommand(GitCommand):
Expand Down

0 comments on commit e61cb0a

Please sign in to comment.