Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stacktrace.log location should be configurable #860

Closed
gschueler opened this issue Jul 16, 2014 · 1 comment
Closed

stacktrace.log location should be configurable #860

gschueler opened this issue Jul 16, 2014 · 1 comment
Labels
Milestone

Comments

@gschueler
Copy link
Member

instead of defaulting to the current working dir of the JVM process on startup. This affects Tomcat deployment.

potential fix for Config.groovy:

       if(!System.properties['rundeck.grails.stacktrace.enabled']) {
  String logDir = System.properties['rundeck.grails.stacktrace.dir']
  rollingFile name: 'stacktrace',
              maximumFileSize: 10 * 1024 * 1024,
              file: '$logDir/stacktrace.log',
              layout: pattern(
                  conversionPattern: ''%d [%t] %-5p %c{2} %x - %m%n''),
              maxBackupIndex: 10
} else {
    null name:'stacktrace'
} 
@gschueler gschueler added the bug label Jul 16, 2014
@gschueler gschueler added this to the 2.2.x milestone Jul 16, 2014
gschueler added a commit that referenced this issue Jul 24, 2014
@gschueler
Copy link
Member Author

  • require system property -Drundeck.grails.stacktrace.enabled=true to enable stacktrace logging
  • require system property -D rundeck.grails.stacktrace.dir=/path to determine destination for stacktrace.log file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant