Skip to content

Commit

Permalink
improved log messages
Browse files Browse the repository at this point in the history
Issue #557
  • Loading branch information
rsoika committed Aug 27, 2019
1 parent c6e34b3 commit a5a0195
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public final static BPMNModel parseModel(InputStream bpmnInputStream, String enc
// store file content from input stream into the BPMNmodel
model.setRawData(rawData);

logger.info("BPMN Model '" + model.getVersion() + "' parsed in " + (System.currentTimeMillis() - lTime) + "ms");
logger.fine("...BPMN Model '" + model.getVersion() + "' parsed in " + (System.currentTimeMillis() - lTime) + "ms");
return model;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import javax.annotation.Resource;
import javax.annotation.security.DeclareRoles;
import javax.annotation.security.RolesAllowed;
import javax.ejb.EJB;
import javax.ejb.LocalBean;
import javax.ejb.SessionContext;
import javax.ejb.Singleton;
Expand Down Expand Up @@ -110,7 +109,7 @@ public ModelService() {
void init() throws AccessDeniedException {

// load existing models into the ModelManager....
logger.info("Initalizing ModelService...");
logger.finest("......Initalizing ModelService...");
// first remove existing model entities
Collection<ItemCollection> col = documentService.getDocumentsByType("model");
for (ItemCollection modelEntity : col) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.io.InputStream;
import java.text.ParseException;
import java.util.Collection;
import java.util.List;
import java.util.Vector;
import java.util.logging.Logger;

Expand Down Expand Up @@ -134,19 +135,30 @@ public int getModelCount() {
*/
@PostConstruct
public void startup() {
logger.info("...setup service started...");

logger.info(" ____ _ _ __ __ _____ ");
logger.info(" / _/_ _ (_)_ __ ______| | /| / /__ ____/ /__ / _/ /__ _ __");
logger.info(" _/ // ' \\/ /\\ \\ /(_-<___/ |/ |/ / _ \\/ __/ '_// _/ / _ \\ |/|/ /");
logger.info("/___/_/_/_/_//_\\_\\/___/ |__/|__/\\___/_/ /_/\\_\\/_//_/\\___/__,__/ 5.1");
logger.info("");

logger.info("...initalizing models...");

// first we scan for default models
if (modelService.getVersions().isEmpty()) {
List<String> models = modelService.getVersions();
if (models.isEmpty()) {
scanDefaultModels();
} else {
logger.info("...model status = OK");
for (String model: models) {
logger.info("...model: " + model + " ...OK");
}
}

// migrate old workflow scheduler
migrateWorkflowScheduler();

// next start optional schedulers
logger.info("...initalizing schedulers...");
schedulerService.startAllSchedulers();

// Finally fire the SetupEvent. This allows CDI Observers to react on the setup
Expand Down

0 comments on commit a5a0195

Please sign in to comment.