Skip to content

Commit 838c2e0

Browse files
committed
Log errors in CI to help track them
1 parent e09818c commit 838c2e0

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Diff for: .travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ after_success:
3939
- docker tag singularitiesorg/circular-work "singularitiesorg/circular-work:$TRAVIS_COMMIT"
4040
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
4141
- docker push "singularitiesorg/circular-work:$TRAVIS_COMMIT"
42+
after_failure:
43+
- docker-compose logs app
4244

4345
notifications:
4446
webhooks:

Diff for: config/environments/production.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@
4141

4242
# Use the lowest log level to ensure availability of diagnostic information
4343
# when problems arise.
44-
config.log_level = :debug
44+
if ENV['CI']
45+
config.log_level = :error
46+
else
47+
config.log_level = :debug
48+
end
4549

4650
# Prepend all log lines with the following tags.
4751
config.log_tags = [ :request_id ]

Diff for: docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ services:
55
ports:
66
- "127.0.0.1:8030:3000"
77
environment:
8+
CI: 1
89
DATABASE_URL: postgres://postgres:dbpass@db:5432?pool=10
910
DEFAULT_HOST: example.com
1011
RAILS_ENV: production

0 commit comments

Comments
 (0)