@@ -281,7 +281,7 @@ outer:
281
281
282
282
fNwkSIntKey , err := cryptoutil .UnwrapAES128Key (* dev .matchedSession .FNwkSIntKey , ns .KeyVault )
283
283
if err != nil {
284
- logger .WithField ("kek_label" , dev .matchedSession .FNwkSIntKey .KEKLabel ).WithError (err ).Error ("Failed to unwrap FNwkSIntKey, skipping..." )
284
+ logger .WithField ("kek_label" , dev .matchedSession .FNwkSIntKey .KEKLabel ).WithError (err ).Warn ("Failed to unwrap FNwkSIntKey, skipping..." )
285
285
continue
286
286
}
287
287
@@ -301,7 +301,7 @@ outer:
301
301
302
302
sNwkSIntKey , err := cryptoutil .UnwrapAES128Key (* dev .matchedSession .SNwkSIntKey , ns .KeyVault )
303
303
if err != nil {
304
- logger .WithField ("kek_label" , dev .matchedSession .SNwkSIntKey .KEKLabel ).WithError (err ).Error ("Failed to unwrap SNwkSIntKey, skipping..." )
304
+ logger .WithField ("kek_label" , dev .matchedSession .SNwkSIntKey .KEKLabel ).WithError (err ).Warn ("Failed to unwrap SNwkSIntKey, skipping..." )
305
305
continue
306
306
}
307
307
@@ -423,7 +423,7 @@ func (ns *NetworkServer) handleUplink(ctx context.Context, up *ttnpb.UplinkMessa
423
423
}
424
424
key , err := cryptoutil .UnwrapAES128Key (* ses .NwkSEncKey , ns .KeyVault )
425
425
if err != nil {
426
- logger .WithField ("kek_label" , ses .NwkSEncKey .KEKLabel ).WithError (err ).Error ("Failed to unwrap NwkSEncKey" )
426
+ logger .WithField ("kek_label" , ses .NwkSEncKey .KEKLabel ).WithError (err ).Warn ("Failed to unwrap NwkSEncKey" )
427
427
return err
428
428
}
429
429
@@ -700,7 +700,7 @@ func (ns *NetworkServer) handleUplink(ctx context.Context, up *ttnpb.UplinkMessa
700
700
return stored , paths , nil
701
701
})
702
702
if err != nil && ! handleErr {
703
- logger .WithError (err ).Error ("Failed to update device in registry" )
703
+ logger .WithError (err ).Warn ("Failed to update device in registry" )
704
704
// TODO: Retry transaction. (https://github.com/TheThingsNetwork/lorawan-stack/issues/33)
705
705
registerDropDataUplink (ctx , & matched .EndDeviceIdentifiers , up , err )
706
706
}
@@ -769,7 +769,7 @@ func (ns *NetworkServer) handleJoin(ctx context.Context, up *ttnpb.UplinkMessage
769
769
)
770
770
if err != nil {
771
771
registerDropJoinRequest (ctx , nil , up , err )
772
- logger .WithError (err ).Error ("Failed to load device from registry" )
772
+ logger .WithError (err ).Warn ("Failed to load device from registry" )
773
773
return err
774
774
}
775
775
@@ -790,7 +790,7 @@ func (ns *NetworkServer) handleJoin(ctx context.Context, up *ttnpb.UplinkMessage
790
790
ctx = log .NewContext (ctx , logger )
791
791
792
792
if err := resetMACState (dev , ns .FrequencyPlans , ns .defaultMACSettings ); err != nil {
793
- logger .WithError (err ).Error ("Failed to reset device's MAC state" )
793
+ logger .WithError (err ).Warn ("Failed to reset device's MAC state" )
794
794
return err
795
795
}
796
796
@@ -901,7 +901,7 @@ func (ns *NetworkServer) handleJoin(ctx context.Context, up *ttnpb.UplinkMessage
901
901
return stored , paths , nil
902
902
})
903
903
if err != nil && ! resetErr {
904
- logger .WithError (err ).Error ("Failed to update device in registry" )
904
+ logger .WithError (err ).Warn ("Failed to update device in registry" )
905
905
// TODO: Retry transaction. (https://github.com/TheThingsNetwork/lorawan-stack/issues/33)
906
906
}
907
907
if err != nil {
@@ -1003,7 +1003,7 @@ func (ns *NetworkServer) HandleUplink(ctx context.Context, up *ttnpb.UplinkMessa
1003
1003
logger .Debug ("Handling rejoin-request..." )
1004
1004
return ttnpb .Empty , ns .handleRejoin (ctx , up , acc )
1005
1005
default :
1006
- logger .Error ("Unmatched MType" )
1006
+ logger .Warn ("Unmatched MType" )
1007
1007
return ttnpb .Empty , nil
1008
1008
}
1009
1009
}
0 commit comments