Logic prevailed, and the stalemate ended.

Defenseman Tony DeAngelo ended his holdout on Friday, and the restricted free agent signed a one-year, $925,000 deal from the Rangers that had been on the table for a while. The 23-year-old didn’t have much leverage, but he seemingly does have a roster spot waiting for him.

“I think he realized that the situation was what it was — it was going to be a one-year deal and it was probably smart to get in here,” general manager Jeff Gorton said before the Rangers’ 4-2 preseason loss to the Devils in Newark.

DeAngelo got the same deal the Rangers gave another restricted free agent, forward Brendan Lemieux, just north of their qualifying offers of $874,125. It seems as if DeAngelo is being penciled in as the third-pair righty, not quite the same responsibility he had at the end of this past season, when he played almost 20 minutes a night and compiled most of his 30 points (in 61 total games).

“He’s a big part of our future,” coach David Quinn said. “There’s a business side to this, and we all understand that. But we’re anticipating him staying for a little while now and we’re glad to have him back.”

Star winger Artemi Panarin stayed off the ice for the second straight day after suffering a mild groin strain during Wednesday’s preseason opener against the Devils.

“Panarin is day-to-day. He’s going to be fine,” Gorton said. “No real concern.”

According to Quinn, Panarin likely won’t play Saturday in Philadelphia, but the plan is for him to get into more exhibition games before the regular-season opener on Oct. 3.

Goalie Henrik Lundqvist made his preseason debut, getting peppered for 24 shots in 30:20 of ice time, giving up three goals — including a breakaway goal for No. 1-overall pick Jack Hughes on the first shot of the game, just 34 seconds in.

“First shot, breakaway, a ‘welcome back’ moment,” Lundqvist said. “But I felt better as the game went on.”

Lundqvist was replaced by Adam Huska, who stopped 15-of-16 shots.

The Rangers sent four players down to training camp with AHL Hartford: Brandon Crawley, Jake Elmer, Vincent LoVerde and Darren Raddysh. … Defenseman Yegor Rykov remained off the ice with an ankle injury suffered early in camp. … Second-round pick Matt Robertson returned to practice after the 6-foot-4 defenseman had tweaked his groin in the Traverse City prospects tournament. … Defenseman Sean Day skated in a non-contact jersey after having offseason hip surgery, but Quinn said he still needs some time before being ready to fully participate.