We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 538b8a4 commit 4ccd5e0Copy full SHA for 4ccd5e0
src/utils/stats_processor.py
@@ -59,8 +59,6 @@ def update_stats(self, stats: dict):
59
if not self.create_new_stats_file():
60
return False
61
if not os.access(self.stats_file(), os.W_OK):
62
- log.warning("Failed to usage statistics. "
63
- "Please allow write access to the following file: {}".format(self.stats_file()))
64
65
try:
66
str_data = json.dumps(stats, indent=4)
@@ -93,6 +91,5 @@ def remove_stats_file(self):
93
91
stats_file = self.stats_file()
94
92
if os.path.exists(stats_file):
95
if not os.access(stats_file, os.W_OK):
96
- log.warning("Failed to remove statistics file {}.".format(stats_file))
97
return
98
os.remove(stats_file)
0 commit comments