diff --git a/__init__.py b/__init__.py index 254e9fc..1f160e8 100644 --- a/__init__.py +++ b/__init__.py @@ -46,12 +46,16 @@ if log.level == logging.DEBUG: os.makedirs(DST_DIR, exist_ok=True) for AppSetting in AppSettings: + log.debug(f"Processing {AppSetting}") response = requests.get(AppSettings[AppSetting], headers={"Cookie": f".ROBLOSECURITY={ROBLOSECURITY}"}) if response.status_code == 200: log.info(f"Successfully retrieved {AppSetting}") with open(os.path.join(DST_DIR, f"{AppSetting}.json"), "w") as f: + log.debug(f"Response is {len(response.content)/(1<<10):,.0f} kilobytes") formatted_response = json.dumps(response.json(), indent=4) + log.debug(f"Formatted {AppSetting}") f.write(formatted_response) + log.debug(f"Wrote {AppSetting}") else: log.error(f"Failed to retrieve {AppSetting}: {response.status_code}") \ No newline at end of file