Pilots spent hours upon hours flying in bombers and escorts over great distances, how did they deal with it?
The outbound and inbound flights weren't exactly "boring".
On the outbound they'd be concentrating on avoiding known anti aircraft defences and defending fighters, listening to their navigator and making any maneuvers as needed. Remember the bomber may sometimes flew very low to avoid enemy radar, literally at tree top height in some cases, low level flying is very difficult and requires lots of concentration. You'd also listen to your engineer, should any technical issue arise with the plane the pilot alone would have to make the decision to carry on to the target, turn back or even worse, ditch the aircraft.
Near a target both flak and enemy fighter defences would be much stronger. The pilot had to get the aircraft to the designated altitude to bomb, at the same time making any course corrections. If a gunner shouted for a corkscrew it meant they were under direct attack, the pilot would put the plane in a steep drive to try and escape. Likewise if the aircraft was caught in searchlights harsh evasive maneuvers would be made to escape the lights.
When closing in to the target the pilot had to keep the aircraft straight and level whilst the bomb aimer gave tiny course corrections, when the magic "bombs gone!" words were said they might still need to keep steady to give the camera enough times to take the pictures. Finally the pilot could sweep the plane away and leave as quickly as possible.
This assumes that it was possible to bomb the prime target, if cloud cover prevented this, the pilot had to make the decision if to bomb blind or re-route to the secondary target.
Return trips were often a nightmare. A damaged aircraft was almost a certainty, possibly injured crew to consider as well. Damage to the aircraft might mean radio communication with the crew was impossible. If the navigator was injured or unable to do his job the pilot would have to figure out a way to get home.
The pilot was responsible for his entire crew, so if he didn't think they could make it back he had to make the decision to tell his crew to bail out, preferably over allied territory. if there was no time a crash landing would be attempted.
Even if they could make it back there was much to pay attention to - approaching home shores could be difficult - it wasn't unknown for aircraft to be shot at by their own "side", usually over zealous defenders in anti aircraft batteries. Then, once over their home airfield the pilot would have to circle and prepare to land. I forget the exact statistic but on the allied side there were quite a lot of accidents on the home approach - aircraft running in to each other, unknown damage causing a bad landing (e.g. gear collapsing or non functional) and so on.
It must have been hell, tired after a 10 hour sortie with injured crew to find that your damaged aircraft's landing gear didn't work, low on fuel you had no choice but to belly land and hope the aircraft stayed in one piece and you didn't kill your crew.
Once on the ground de-brief with an intelligence officer would happen, probably with some refreshments, you'd update your flight log and drag yourself to bed, wondering if your pals made it home.
TL;DR Pilots would have loved to be bored! There was still lots to do and pay attention to.
This is mostly from an allied perspective, as I've read more about them, but I would suspect it would be pretty similar for Axis forces.