Please, use a storagenode API instead of scripts for logs.
When you update the version, your previous logs are gone.