Merge pull request #607 from robertbaldyga/loader-fix-log

open-cas-loader: Fix error message
This commit is contained in:
Robert Baldyga 2020-12-31 21:10:39 +01:00 committed by GitHub
commit 7e78679400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ try:
config = opencas.cas_config.from_file('/etc/opencas/opencas.conf',
allow_incomplete=True)
except Exception as e:
sl.syslog(sl.LOG_ERR, 'Unable to load opencas config. Reason: {str(e)}')
sl.syslog(sl.LOG_ERR, f'Unable to load opencas config. Reason: {str(e)}')
exit(1)
for cache in config.caches.values():