Skip to content

Commit 71f4b1c

Browse files
committed
updated plugin versions and log fix
1 parent df616de commit 71f4b1c

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

application.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
app.grails.version=2.3.11
44
app.name=alerts
55
app.servlet.version=2.5
6-
app.version=1.0
6+
app.version=1.1-SNAPSHOT

grails-app/conf/BuildConfig.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ grails.project.dependency.resolution = {
4545

4646
plugins {
4747
build ":release:3.0.1"
48-
runtime ":ala-bootstrap2:2.1"
49-
runtime ":ala-auth:1.2"
48+
runtime ":ala-bootstrap2:2.3"
49+
runtime ":ala-auth:1.3.1"
5050
runtime ":hibernate:3.6.10.16"
5151
runtime ":jquery:1.8.3"
5252
runtime ":resources:1.2.8"

grails-app/conf/Config.groovy

+7-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ grails.exceptionresolver.params.exclude = ['password']
7575
grails.hibernate.cache.queries = false
7676

7777
//override this in external configuration
78-
logging.dir = (System.getProperty('catalina.base') ? System.getProperty('catalina.base') + '/logs' : '/var/log/tomcat6/')
78+
def logging_dir = (System.getProperty('catalina.base') ? System.getProperty('catalina.base') + '/logs' : '/var/log/tomcat7/')
79+
if(!new File(logging_dir).exists()){
80+
logging_dir = '/tmp'
81+
}
82+
7983

8084
// log4j configuration
8185
log4j = {
@@ -92,10 +96,10 @@ log4j = {
9296
production {
9397
rollingFile name: "postie-prod",
9498
maxFileSize: 104857600,
95-
file: logging.dir + "/alerts.log",
99+
file: logging_dir + "/alerts.log",
96100
threshold: org.apache.log4j.Level.ERROR,
97101
layout: pattern(conversionPattern: "%d [%c{1}] %m%n")
98-
rollingFile name: "stacktrace", maxFileSize: 1024, file: logging.dir + "/alerts-stacktrace.log"
102+
rollingFile name: "stacktrace", maxFileSize: 1024, file: logging_dir + "/alerts-stacktrace.log"
99103
}
100104
development{
101105
console name: "stdout", layout: pattern(conversionPattern: "%d [%c{1}] %m%n"), threshold: org.apache.log4j.Level.DEBUG

0 commit comments

Comments
 (0)