Skip to content

Commit

Permalink
Avoid logging error when media config not found
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Dec 12, 2024
1 parent 7456234 commit 449da09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/api/Controllers/MediaStreamController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ public async Task<ActionResult<MediaConfig>> GetMediaStreamConfig([FromRoute] st
var config = await isarService.GetMediaStreamConfig(robot);
return Ok(config);
}
catch (Exception e)
catch (Exception)
{
logger.LogError(e, "Error during GET of media stream config from ISAR");
throw;
logger.LogWarning("No ISAR media config retrieved from robot with ID {id}", id);
return NotFound($"No media config retrieved for robot with ID {id}");
}
}
}
Expand Down

0 comments on commit 449da09

Please sign in to comment.