Mike Bayer avatar Mike Bayer committed 482f00f

- put the correct target here in the log message

Comments (0)

Files changed (1)

lib/sqlalchemy/orm/relationships.py

         if self.prop is None:
             return
         log = self.prop.logger
-        log.info('%s setup primary join %s', self,
+        log.info('%s setup primary join %s', self.prop,
                          self.primaryjoin)
-        log.info('%s setup secondary join %s', self,
+        log.info('%s setup secondary join %s', self.prop,
                          self.secondaryjoin)
-        log.info('%s synchronize pairs [%s]', self,
+        log.info('%s synchronize pairs [%s]', self.prop,
                          ','.join('(%s => %s)' % (l, r) for (l, r) in
                          self.synchronize_pairs))
-        log.info('%s secondary synchronize pairs [%s]', self,
+        log.info('%s secondary synchronize pairs [%s]', self.prop,
                          ','.join('(%s => %s)' % (l, r) for (l, r) in
                          self.secondary_synchronize_pairs or []))
-        log.info('%s local/remote pairs [%s]', self,
+        log.info('%s local/remote pairs [%s]', self.prop,
                          ','.join('(%s / %s)' % (l, r) for (l, r) in
                          self.local_remote_pairs))
-        log.info('%s relationship direction %s', self,
+        log.info('%s relationship direction %s', self.prop,
                          self.direction)
 
     def _determine_joins(self):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.