Commit Graph

24 Commits

Author SHA1 Message Date
Alex X 9c98f5e769 Update version to 1.9.0 2024-04-30 14:38:59 +03:00
Alex X c7af5028be Code fix after #963 2024-04-29 10:32:42 +03:00
Alex X ee5c663467 Code refactoring after #963 2024-04-29 07:51:53 +03:00
Sergey Krashevich 3afe8d7c1d fix(daemon-mode): handle '-daemon' argument correctly for background execution
This commit fixes the issue where the '-daemon' argument was not being properly handled when re-executing the program in daemon mode. The loop removes the '-daemon' flag from the arguments slice before the program is re-run in the background, ensuring that subsequent executions do not attempt to enter daemon mode again.

The change will prevent potential errors or unexpected behavior due to the presence of the '-daemon' argument in recursive calls, making the daemon mode feature more robust and reliable.
2024-02-24 13:04:18 +03:00
Sergey Krashevich 15c27e16cc feat(app): support daemon mode on non-Windows platforms
Added a new command-line flag `-daemon` to run the application in the background as a daemon. This option is only available for non-Windows operating systems due to platform-specific process handling. When enabled, the application restarts itself with the same arguments except for the `-daemon` flag, prints the PID of the background process, and then exits the current process.
2024-02-24 10:33:02 +03:00
Alex X ccec41a10f Update version to 1.8.5 2024-01-01 09:34:44 +03:00
Alex X d3bc18c369 Logs refactoring after #780 2023-12-11 18:07:38 +03:00
Sergey Krashevich 0a8ab9bbd1 Update app.go to remove the unused variable LogFilePath 2023-12-05 17:50:51 +03:00
Sergey Krashevich b60000ac34 Refactor log handling to use in-memory Logger 2023-12-05 17:44:32 +03:00
Sergey Krashevich 8d382afa0f Add log file handling and viewing capabilities
This commit introduces the ability to handle log files through the API and
provides a new log viewing page. The API now supports GET and DELETE methods
for log file operations, allowing retrieval and deletion of log contents.
A new log.html page has been added for viewing logs in the browser, with
automatic refresh every 5 seconds and styling based on log levels.

The app.go file has been updated to include a GetLogFilepath function that
retrieves or generates the log file path. The NewLogger function now accepts
a file parameter to enable file logging. The main.js file has been updated
to include a link to the new log.html page.

This enhancement improves the observability and management of the application
by providing real-time access to logs and the ability to clear them directly
from the web interface.
2023-11-26 23:21:57 +03:00
Alex X a87dafbbec Update version to 1.8.4 2023-11-19 18:38:26 +03:00
Alex X befa6bd356 Update version to 1.8.3 2023-11-15 12:20:47 +03:00
Alex X 50e2a626a6 Update version to 1.8.2 2023-11-04 18:49:56 +03:00
Alex X 20d45bff92 Update to version 1.8.1 2023-10-15 20:15:35 +03:00
Alex X e367940bd9 Fix version in API 2023-10-15 09:37:24 +03:00
Alex X 6f2af78392 Update version to 1.8.0 2023-10-14 17:19:19 +03:00
Alexey Khit c8ac6b2271 Update version to 1.7.1 2023-09-10 20:19:20 +03:00
Alexey Khit fc1b6af436 Update version to 1.7.0 2023-09-02 16:05:09 +03:00
Alexey Khit 9f404d965f Rewrite HomeKit pairing API 2023-09-01 22:48:06 +03:00
Alexey Khit f196d83a14 Update version to 1.6.2 2023-07-20 23:40:43 +03:00
Alexey Khit a8526ae4eb Update version to 1.6.1 2023-07-20 08:12:10 +03:00
Alexey Khit b5d40caffc Update version to 1.6.0 2023-07-11 07:48:51 +03:00
Alexey Khit da92256910 Update version to 1.5.0 2023-05-04 15:04:06 +03:00
Alexey Khit 75f61b38ac Move cmd module to internal 2023-05-01 12:55:14 +03:00