Skip to content

feat: Add robust logging and update device list#3

Open
amirmohammadrazmy wants to merge 1 commit intoMrPooyaX:mainfrom
amirmohammadrazmy:feat/add-logging-and-update-devices
Open

feat: Add robust logging and update device list#3
amirmohammadrazmy wants to merge 1 commit intoMrPooyaX:mainfrom
amirmohammadrazmy:feat/add-logging-and-update-devices

Conversation

@amirmohammadrazmy
Copy link

This commit introduces two main changes to help diagnose why the application is no longer working.

  1. Add Robust Logging:

    • Implemented a Log() method to write timestamped events and errors to a log.txt file.
    • Refactored the main hamle() loop to remove the silent try-catch block.
    • Added granular error handling to log the full, raw server response when an API call (authorize, upgradableApps) fails.
    • Added a top-level exception handler to catch and log any unexpected errors, such as network failures.
  2. Update Device List:

    • Replaced the contents of devices.txt with a more current list of popular Android devices from 2023.

Note: The project could not be compiled in the environment due to the absence of .NET build tools. The user will need to compile the project in their own environment to generate the new executable.

This commit introduces two main changes to help diagnose why the application is no longer working.

1.  **Add Robust Logging:**
    - Implemented a `Log()` method to write timestamped events and errors to a `log.txt` file.
    - Refactored the main `hamle()` loop to remove the silent `try-catch` block.
    - Added granular error handling to log the full, raw server response when an API call (authorize, upgradableApps) fails.
    - Added a top-level exception handler to catch and log any unexpected errors, such as network failures.

2.  **Update Device List:**
    - Replaced the contents of `devices.txt` with a more current list of popular Android devices from 2023.

Note: The project could not be compiled in the environment due to the absence of .NET build tools. The user will need to compile the project in their own environment to generate the new executable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant