File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1107,7 +1107,7 @@ func migrateDeviceMetrics(devEUI []byte) {
11071107 }
11081108
11091109 if err := csRedis .HSet (context .Background (), newKey , vals ).Err (); err != nil {
1110- panic ( err )
1110+ log . Printf ( "Migrate device metrics error: %s" , err )
11111111 }
11121112 if err := csRedis .PExpire (context .Background (), newKey , ttl [aggregation ]).Err (); err != nil {
11131113 panic (err )
@@ -1146,7 +1146,7 @@ func migrateGatewayMetrics(gatewayID []byte) {
11461146 }
11471147
11481148 if err := csRedis .HSet (context .Background (), newKey , vals ).Err (); err != nil {
1149- panic ( err )
1149+ log . Panicf ( "Migrate gateway metrics error: %s" , err )
11501150 }
11511151 if err := csRedis .PExpire (context .Background (), newKey , ttl [aggregation ]).Err (); err != nil {
11521152 panic (err )
You can’t perform that action at this time.
0 commit comments