Skip to content

Commit

Permalink
[#642] Add spaces to log messages where they are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Mar 26, 2013
1 parent 46e3fde commit 8d39171
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ckanext/datastore/plugin.py
Expand Up @@ -43,8 +43,8 @@ def configure(self, config):
# that we should ignore the following tests.
import sys
if sys.argv[0].split('/')[-1] == 'paster' and 'datastore' in sys.argv[1:]:
log.warn('Omitting permission checks because you are '
'running paster commands.')
log.warn("Omitting permission checks because you are "
"running paster commands.")
return

self.ckan_url = self.config['sqlalchemy.url']
Expand All @@ -68,12 +68,12 @@ def configure(self, config):

self._create_alias_table()
else:
log.warn("We detected that CKAN is running on a read"
log.warn("We detected that CKAN is running on a read "
"only database. Permission checks and the creation "
"of _table_metadata are skipped.")
else:
log.warn("We detected that you do not use a PostgreSQL"
"database. The DataStore will NOT work and datastore"
log.warn("We detected that you do not use a PostgreSQL "
"database. The DataStore will NOT work and datastore "
"tests will be skipped.")

## Do light wrapping around action function to add datastore_active
Expand Down Expand Up @@ -173,7 +173,7 @@ def _check_read_permissions(self):
read_connection.execute(sql)
except ProgrammingError, e:
if 'permission denied' not in str(e):
log.critical("Possibly unsafe datastore. If '{0}'"
log.critical("Possibly unsafe datastore. If '{0}' "
"does not mean 'permission denied', "
"you have to double check the permissions "
"for the datastore table.".format(e.message))
Expand Down

0 comments on commit 8d39171

Please sign in to comment.