-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from City-of-Helsinki/UHF-9986
UHF-9986: Logging improvements
- Loading branch information
Showing
14 changed files
with
100 additions
and
75 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
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 |
---|---|---|
@@ -1,4 +1,11 @@ | ||
#!/bin/sh | ||
sudo touch /tmp/drupal.log && sudo chmod a+rw /tmp/drupal.log | ||
|
||
tail -f /tmp/drupal.log & | ||
cd /app | ||
|
||
# @todo Remove this once all projects use monolog. | ||
if ! composer show drupal/monolog -q 2>/dev/null; then | ||
sudo touch /tmp/drupal.log && sudo chmod a+rw /tmp/drupal.log | ||
tail -f /tmp/drupal.log & | ||
else | ||
echo "Found drupal/monolog. Skipping logger entrypoint ..." | ||
fi |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
#!/bin/sh | ||
touch /tmp/drupal.log && chmod a+rw /tmp/drupal.log | ||
|
||
tail -f /tmp/drupal.log & | ||
cd /var/www/html | ||
|
||
# @todo Remove this once all projects use monolog. | ||
if ! composer show drupal/monolog -q 2>/dev/null; then | ||
sudo touch /tmp/drupal.log && sudo chmod a+rw /tmp/drupal.log | ||
tail -f /tmp/drupal.log & | ||
else | ||
echo "Found drupal/monolog. Skipping logger entrypoint ..." | ||
fi | ||
|
File renamed without changes.
File renamed without changes.
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
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