45
45
)
46
46
public class ScriptRunnerJobConsumer {
47
47
48
- private static final Logger LOG = LoggerFactory .getLogger (ScriptRunnerJobConsumer .class );
48
+ private static final Logger LOGGER = LoggerFactory .getLogger (ScriptRunnerJobConsumer .class );
49
49
50
50
@ Reference
51
51
private History history ;
@@ -63,7 +63,7 @@ public class ScriptRunnerJobConsumer {
63
63
private ResourceResolverProvider resolverProvider ;
64
64
65
65
public void process (Map <String , Object > properties ) {
66
- LOG .info ("Script runner properties consumer started" );
66
+ LOGGER .info ("Script runner properties consumer started" );
67
67
String id = (String ) properties .get (AsyncScriptExecutorImpl .ID );
68
68
ExecutionMode mode = getMode (properties );
69
69
String userId = getUserId (properties );
@@ -75,7 +75,7 @@ public void process(Map<String, Object> properties) {
75
75
String summaryPath = getSummaryPath (resolver , script , mode );
76
76
jobResultsCache .put (id , ExecutionSummary .finished (executionResult , summaryPath ));
77
77
} catch (RepositoryException | PersistenceException e ) {
78
- LOG .error ("Script manager failed to process script" , e );
78
+ LOGGER .error ("Script manager failed to process script" , e );
79
79
}
80
80
}
81
81
});
@@ -96,7 +96,7 @@ private ExecutionMode getMode(Map<String, Object> properties) {
96
96
if (StringUtils .isNotBlank (modeName )) {
97
97
result = StringUtils .isEmpty (modeName ) ? ExecutionMode .DRY_RUN : ExecutionMode .valueOf (modeName .toUpperCase ());
98
98
} else {
99
- LOG .error ("Mode is null" );
99
+ LOGGER .error ("Mode is null" );
100
100
}
101
101
return result ;
102
102
}
@@ -114,12 +114,12 @@ private Script getScript(Map<String, Object> properties, ResourceResolver resolv
114
114
if (StringUtils .isNotBlank (scriptSearchPath )) {
115
115
Script script = scriptFinder .find (scriptSearchPath , resolver );
116
116
if (script == null ) {
117
- LOG .error ("Script not found: {}" , scriptSearchPath );
117
+ LOGGER .error ("Script not found: {}" , scriptSearchPath );
118
118
return null ;
119
119
}
120
120
return script ;
121
121
} else {
122
- LOG .error ("Script search path is blank" );
122
+ LOGGER .error ("Script search path is blank" );
123
123
return null ;
124
124
}
125
125
}
0 commit comments