Skip to content

Commit b4bb7bc

Browse files
Improve logging message to avoid potential security concerns
Co-authored-by: marc-hanheide <1153084+marc-hanheide@users.noreply.github.com>
1 parent d39681d commit b4bb7bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

figshare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ def __init__(self, page_size=100):
124124
self.logger = getLogger("FigShare")
125125
self.token = os.getenv('FIGSHARE_TOKEN')
126126
if self.token:
127-
self.logger.info("Using authenticated requests with FIGSHARE_TOKEN")
127+
self.logger.info("Figshare API: Using authenticated requests")
128128
else:
129-
self.logger.warning("No FIGSHARE_TOKEN found - using anonymous requests (may hit rate limits or receive 403 errors)")
129+
self.logger.warning("Figshare API: No authentication token found - using anonymous requests (may hit rate limits or receive 403 errors)")
130130
self.page_size = page_size
131131
self.base_url = "https://api.figshare.com/v2"
132132

0 commit comments

Comments
 (0)