Logging added to the PiSync command line script