File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ def initialize
80
80
end
81
81
82
82
def set_up_redis
83
- log . info ( "Connecting with Redis [#{ @redis_config . host } :#{ redis_config . port } ]" )
83
+ log . info ( "Connecting with Redis [#{ @redis_config . host } :#{ @ redis_config. port } ]" )
84
84
@redis = Redis . new ( host : @redis_config . host , port : @redis_config . port )
85
85
ready = false
86
86
until ready
@@ -89,7 +89,7 @@ def set_up_redis
89
89
@redis . ping
90
90
ready = true
91
91
rescue StandardError => e
92
- log . error ( "ERROR: #{ e } " )
92
+ log . error ( "Unable to connect to Redis server! ERROR: ' #{ e } '. Retrying... " )
93
93
end
94
94
end
95
95
end
@@ -153,7 +153,7 @@ def update_deployment_last_action(deploymentid)
153
153
@redis . set ( key , curdt . strftime ( FMT_DATETIME ) )
154
154
end
155
155
rescue StandardError => e
156
- log . debug ( " ERROR: #{ e } ")
156
+ log . error ( "Unable to update last action! ERROR: ' #{ e } '. ")
157
157
end
158
158
end
159
159
@@ -236,7 +236,7 @@ def flush_api_metrics
236
236
237
237
log . debug ( 'Flushing complete!' )
238
238
rescue StandardError => e
239
- log . debug ( " ERROR: #{ e } ")
239
+ log . error ( "Unable to flush metrics! ERROR: ' #{ e } '. ")
240
240
end
241
241
end
242
242
end
You can’t perform that action at this time.
0 commit comments