-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return the full log path in the diagnose report (#402)
* Return the full log path in the diagnose report Currently, the diagnose command expects the logPath to include the filename for the `appsignal.log` file. To get the `log_dir_path`, the filename is stripped off. The `LogPath` is then used to return the full path to the file. In reality, it should be the other way around. The `LogPath` does not include the filename, so it can be used as the log_dir_path in the diagnose. Then, to get the full path to the `appsignal.log` file, this patch appends the filename to the log path. * Use internal value for logFilePath in diagnose Co-authored-by: Tom de Bruijn <[email protected]> * Explicitly cast logFilePath to <string> * Diagnose strips "/appsignal.log" from directory path, if present Co-authored-by: Tom de Bruijn <[email protected]>
- Loading branch information
1 parent
6dd70bb
commit a3bbb9f
Showing
3 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
bump: "patch" | ||
--- | ||
|
||
Fix the log path reported when running the diagnose command to include the | ||
filename. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters