This commit is contained in:
1 parent
4b312f72c7
commit
556afec35d
1 file changed
+1
-1
@@ -237,7 +237,7 @@ class HttpUploader:
|
||||
self._busy = False # True while an upload thread is running
|
||||
self._warn_at: dict[str, float] = {} # key -> epoch of last warning
|
||||
|
||||
_WARN_COOLDOWN_S = 60 # only repeat the same warning once per minute
|
||||
_WARN_COOLDOWN_S = 600 # only repeat the same warning once per minute
|
||||
|
||||
def _warn(self, key: str, msg: str) -> None:
|
||||
"""Log a warning at most once per _WARN_COOLDOWN_S for a given key."""
|
||||
|
||||
Reference in new issue
Block a user