Design a permanent cure so that you never have to deal with that symptom again. The ultimate goal when looking for trouble is to reduce non-preventive maintenance to zero. During the first six months of passage making, we never thought that we would get over the chafed-through topping lifts, the broken stitches on the mainsail and the split batten pockets. Even stainless steel can chafe we had a stainless shackle on a spinnaker block chafe right through. But we kept reinforcing sails with sail tape, putting webbing on batten pockets and trying different blocks and lines on the topping lift.
Corrosion is every bit as insidious as chafe, but can be much harder to uncover.
Nearly all marine electrical problems are due to corroded connections or improper wire. Whether you solder or crimp, the motion of the boat and the corrosion from sea air will ultimately undo your best work. Secure all wires firmly with wire ties, spray all connections with one of the various anti-corrosives and make sure that no leaks or spray reach any bus bar or switch panel. Water and mold. Water in the boat anywhere, anytime, whether salt or fresh, should be taken as an immediate challenge.