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 28, 2013
1 parent 4d69dfe commit 52f5e78
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 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 @@ -67,11 +67,13 @@ def configure(self, config):

self._create_alias_table()
else:
log.warn("We detected that CKAN is running on a read only database. "
"Permission checks and the creation of _table_metadata are skipped.")
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 tests will be skipped.")
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
## to resource dict. Not using IAction extension as this prevents
Expand Down

0 comments on commit 52f5e78

Please sign in to comment.