package repository

class BootStrap {
    RepositoryPluginService repositoryPluginService
    def grailsApplication

    def init = { servletContext ->
        boolean enabled = grailsApplication.config.rundeck.features.repository.enabled in [true, 'true']
        boolean sync = grailsApplication.config.rundeck.features.repository.syncOnBootstrap in [true,'true']
        log.debug("Repository enabled: " + enabled)
        if(enabled && sync) {
            log.debug("Syncing installed plugins to this server")
            repositoryPluginService.syncInstalledArtifactsToPluginTarget()
        }
    }
    def destroy = {
    }
}

package repository

class BootStrap {
    RepositoryPluginService repositoryPluginService
    def grailsApplication

    def init = { servletContext ->
        boolean enabled = grailsApplication.config.rundeck.features.repository.enabled in [true, 'true']
        boolean sync = grailsApplication.config.rundeck.features.repository.syncOnBootstrap in [true,'true']
        log.debug("Repository enabled: " + enabled)
        if(enabled && sync) {
            log.info("Syncing installed plugins to this server")
            repositoryPluginService.syncInstalledArtifactsToPluginTarget()
        }
    }
    def destroy = {
    }
}

Update log level for bootstrap message.
Update log level for bootstrap message.
