Skip to content

Commit c38efc8

Browse files
authored
Remove logging verbosity on syncer failure (#4717)
We get a ton of these, but never look at them. I don't really know if we can fix this, but lets stop spamming Sentry
1 parent 90b1e52 commit c38efc8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

readthedocs/builds/syncers.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def copy(cls, path, target, is_file=False, **__):
5858
mkdir_cmd = ("ssh %s@%s mkdir -p %s" % (sync_user, server, target))
5959
ret = os.system(mkdir_cmd)
6060
if ret != 0:
61-
log.error("Copy error to app servers: cmd=%s", mkdir_cmd)
61+
log.debug("Copy error to app servers: cmd=%s", mkdir_cmd)
6262
if is_file:
6363
slash = ""
6464
else:
@@ -74,7 +74,7 @@ def copy(cls, path, target, is_file=False, **__):
7474
target=target))
7575
ret = os.system(sync_cmd)
7676
if ret != 0:
77-
log.error("Copy error to app servers: cmd=%s", sync_cmd)
77+
log.debug("Copy error to app servers: cmd=%s", sync_cmd)
7878

7979

8080
class DoubleRemotePuller(object):
@@ -98,7 +98,7 @@ def copy(cls, path, target, host, is_file=False, **__):
9898
)
9999
ret = os.system(mkdir_cmd)
100100
if ret != 0:
101-
log.error("MkDir error to app servers: cmd=%s", mkdir_cmd)
101+
log.debug("MkDir error to app servers: cmd=%s", mkdir_cmd)
102102
# Add a slash when copying directories
103103
sync_cmd = (
104104
"ssh {user}@{server} 'rsync -av "
@@ -111,7 +111,7 @@ def copy(cls, path, target, host, is_file=False, **__):
111111
target=target))
112112
ret = os.system(sync_cmd)
113113
if ret != 0:
114-
log.error("Copy error to app servers: cmd=%s", sync_cmd)
114+
log.debug("Copy error to app servers: cmd=%s", sync_cmd)
115115

116116

117117
class RemotePuller(object):
@@ -138,7 +138,7 @@ def copy(cls, path, target, host, is_file=False, **__):
138138
)
139139
ret = os.system(sync_cmd)
140140
if ret != 0:
141-
log.error(
141+
log.debug(
142142
"Copy error to app servers. Command: [%s] Return: [%s]",
143143
sync_cmd,
144144
ret,

0 commit comments

Comments
 (0)