@@ -75,7 +75,7 @@ def make_api_call(path: str) -> Optional[List[Dict[str, Any]]]:
75
75
logging .error ("Bad authorization from Codebase. Please check your credentials" )
76
76
sys .exit (- 1 )
77
77
else :
78
- logging .warn (
78
+ logging .warning (
79
79
f"Found non-success response status code: { response .status_code } { response .text } "
80
80
)
81
81
return None
@@ -246,11 +246,11 @@ def handle_event(event: Dict[str, Any]) -> None:
246
246
# but experimental testing showed that they were all sent as 'push' events
247
247
pass
248
248
elif event_type == "wiki_page" :
249
- logging .warn ("Wiki page notifications not yet implemented" )
249
+ logging .warning ("Wiki page notifications not yet implemented" )
250
250
elif event_type == "sprint_creation" :
251
- logging .warn ("Sprint notifications not yet implemented" )
251
+ logging .warning ("Sprint notifications not yet implemented" )
252
252
elif event_type == "sprint_ended" :
253
- logging .warn ("Sprint notifications not yet implemented" )
253
+ logging .warning ("Sprint notifications not yet implemented" )
254
254
else :
255
255
logging .info (f"Unknown event type { event_type } , ignoring!" )
256
256
@@ -264,7 +264,7 @@ def handle_event(event: Dict[str, Any]) -> None:
264
264
if res ["result" ] == "success" :
265
265
logging .info ("Successfully sent Zulip with id: {}" .format (res ["id" ]))
266
266
else :
267
- logging .warn ("Failed to send Zulip: {} {}" .format (res ["result" ], res ["msg" ]))
267
+ logging .warning ("Failed to send Zulip: {} {}" .format (res ["result" ], res ["msg" ]))
268
268
269
269
270
270
# the main run loop for this mirror script
@@ -282,7 +282,7 @@ def run_mirror() -> None:
282
282
else :
283
283
since = datetime .fromtimestamp (float (timestamp ), tz = pytz .utc )
284
284
except (ValueError , OSError ) as e :
285
- logging .warn (f"Could not open resume file: { e } " )
285
+ logging .warning (f"Could not open resume file: { e } " )
286
286
since = default_since ()
287
287
288
288
try :
0 commit comments