~ubuntu-branches/ubuntu/wily/fail2ban/wily-proposed

« back to all changes in this revision

Viewing changes to fail2ban/server/transmitter.py

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2015-07-31 21:34:10 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20150731213410-928fao1ss71tv5zt
Tags: 0.9.3-1
* Fresh upstream release
* debian/control -- adjusted description to mention what Recommends
  and Suggests are good for (Closes: #767114)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
# Gets the instance of the logger.
34
34
logSys = getLogger(__name__)
35
35
 
 
36
 
36
37
class Transmitter:
37
38
        
38
39
        ##
51
52
        
52
53
        def proceed(self, command):
53
54
                # Deserialize object
54
 
                logSys.debug("Command: " + `command`)
 
55
                logSys.debug("Command: " + repr(command))
55
56
                try:
56
57
                        ret = self.__commandHandler(command)
57
58
                        ack = 0, ret
138
139
                elif name == "dbpurgeage":
139
140
                        db = self.__server.getDatabase()
140
141
                        if db is None:
 
142
                                logSys.warning("dbpurgeage setting was not in effect since no db yet")
141
143
                                return None
142
144
                        else:
143
145
                                db.purgeage = command[1]