Skip to content

Commit 190b511

Browse files
committed
fix: verbosity and log
1 parent 4764f44 commit 190b511

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

gitlabrc/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ def fetch_project(clone_path):
144144

145145

146146
def handle_tree_option(projects, t):
147-
logger.info("Generating tree representation")
147+
logger.debug("Generating tree representation")
148148
tree = Tree()
149149
parse = [project.path_with_namespace for project in projects]
150150
parse_content = [
151151
[value + " " for value in elemento.split("/")] for elemento in parse
152152
]
153153
tree.show(tree.make(parse_content))
154-
logger.info(f"Mission accomplished in {str(round(time.time() - t, 2))} s")
154+
logger.debug(f"Mission accomplished in {str(round(time.time() - t, 2))} s")
155155
exit(0)
156156

157157

@@ -208,7 +208,7 @@ def run(options):
208208
clone_path = path + "/" + "/".join(str(x) for x in folders)
209209
clone_path = re.sub("/+", "/", clone_path)
210210

211-
logger.info(f"Folder {clone_path}")
211+
logger.debug(f"Folder {clone_path}")
212212

213213
project_url = (
214214
project.http_url_to_repo

gitlabrc/log.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66
def setup_logging(log_level="INFO"):
77
logger.remove()
88
logger.add(sys.stdout, format="{time} {level} {message}", level=log_level)
9-
logger.add("file.log", rotation="1 week", retention="1 month", level=log_level)

gitlabrc/progress.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ def update(
2020
op_code = op_code & RemoteProgress.OP_MASK
2121

2222
if op_code == RemoteProgress.COUNTING:
23-
logger.info(f"Counting objects: {cur_count} {message}", end=end)
23+
logger.debug(f"Counting objects: {cur_count} {message}", end=end)
2424
elif op_code == RemoteProgress.COMPRESSING:
2525
if max_count is not None:
2626
max_count_float = float(max_count)
2727
cur_count_float = float(cur_count)
28-
logger.info(
28+
logger.debug(
2929
"Compressing objects: %d%% (%d/%d) %s"
3030
% (
3131
(cur_count_float / max_count_float) * 100,
@@ -39,7 +39,7 @@ def update(
3939
if max_count is not None:
4040
max_count_float = float(max_count)
4141
cur_count_float = float(cur_count)
42-
logger.info(
42+
logger.debug(
4343
"Writing objects: %d%% (%d/%d) %s"
4444
% (
4545
(cur_count_float / max_count_float) * 100,
@@ -53,7 +53,7 @@ def update(
5353
if max_count is not None:
5454
max_count_float = float(max_count)
5555
cur_count_float = float(cur_count)
56-
logger.info(
56+
logger.debug(
5757
"Remote: resolving deltas: %d%% (%d/%d) %s"
5858
% (
5959
(cur_count_float / max_count_float) * 100,

0 commit comments

Comments
 (0)