-
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.
Check if logPath fallback is writable
When the configured logPath is not writable, the integration falls back on the system tmp dir. This commit checks if that directory is also writable by the app process or not. We've seen this happen before in the Ruby integration, so let's add the same check here. This change means that the `logFilePath` getter can sometimes return an `undefined` value. The integration will then not set the `_APPSIGNAL_LOG_FILE_PATH` env variable, as it would point to a path that can't be written to. In this case the agent will try to find a log directory on its own, which will probably not succeed either and it will shut down.
- Loading branch information
Showing
4 changed files
with
73 additions
and
24 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,5 @@ | ||
--- | ||
bump: "patch" | ||
--- | ||
|
||
Check if the fallback log directory can be written to and print a warning if no log can be written there. |
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
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