File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ exports.configure = hipchatConfigure;
8
8
9
9
/**
10
10
@invoke as
11
-
11
+
12
12
log4js.configure({
13
13
"appenders": [
14
14
{
@@ -41,7 +41,8 @@ function hipchatAppender(config, layout) {
41
41
42
42
layout = layout || layouts . messagePassThroughLayout ;
43
43
44
- return function ( loggingEvent ) {
44
+ // @lint W074 This function's cyclomatic complexity is too high. (10)
45
+ return function ( loggingEvent ) {
45
46
46
47
notifier . setRoom ( config . hipchat_room ) ;
47
48
notifier . setRoom ( config . hipchat_room ) ;
@@ -74,8 +75,9 @@ function hipchatAppender(config, layout) {
74
75
75
76
// dispatch hipchat api request, do not return anything
76
77
// [overide hipchatNotifierResponseCallback]
77
- notifier [ notifierFn ] ( layoutMessage , hipchatNotifierResponseCallback ) ;
78
- }
78
+ notifier [ notifierFn ] ( layoutMessage , config . hipchat_response_callback ||
79
+ hipchatNotifierResponseCallback ) ;
80
+ } ;
79
81
}
80
82
81
83
function hipchatConfigure ( config ) {
You can’t perform that action at this time.
0 commit comments