Skip to content

Commit 865b440

Browse files
committed
Update logging props/location
This updates logging to work with recent changes in the app.
1 parent 980f7e6 commit 865b440

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

aws-ansible/roles/clojars/tasks/files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
become: yes
1010
become_user: root
1111
file:
12-
path: /logs
12+
path: /var/log/clojars
1313
state: directory
1414
mode: 0755
1515
owner: clojars

aws-ansible/roles/clojars/templates/clojars.service.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Restart=on-failure
99
WorkingDirectory=/home/clojars
1010
Environment="CLOJARS_EXTRA_CONFIG=data/conf/production_config.edn"
1111

12-
ExecStart=/bin/java -Dnla.node=clojars -Xmx512m -server "-XX:OnOutOfMemoryError=kill -9 %p" -cp releases/clojars-web-current.jar clojars.main 2>&1 | /sbin/cronolog -S /logs/clojars.log /logs/%Y%m/clojars.%Y-%m-%d.log
12+
ExecStart=/bin/java -Dnla.node=clojars -Dlog.level=INFO -Dlog.dir=/var/log/clojars -Xmx512m -server "-XX:OnOutOfMemoryError=kill -9 %p" -cp releases/clojars-web-current.jar clojars.main
1313

1414
[Install]
1515
WantedBy=multi-user.target

aws-ansible/roles/system/defaults/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
al2_packages:
2-
- cronolog
32
- htop
43
- mosh
54
- nginx

0 commit comments

Comments
 (0)