summaryrefslogtreecommitdiffstats
path: root/logactio
diff options
context:
space:
mode:
Diffstat (limited to 'logactio')
-rwxr-xr-xlogactio8
1 files changed, 4 insertions, 4 deletions
diff --git a/logactio b/logactio
index 8983dfc..0f682cd 100755
--- a/logactio
+++ b/logactio
@@ -1,9 +1,9 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# logactio - simple framework for doing configured action on certain
# log file events
#
-# Copyright 2012 - 2015 David Sommerseth <dazo@eurephia.org>
+# Copyright 2012 - 2020 David Sommerseth <dazo@eurephia.org>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -75,9 +75,9 @@ if __name__ == '__main__':
main = LogActio(opts.cfg, opts.daemon, opts.pidfile, logger.Log, opts.stdoutredir)
main.Run()
sys.exit(0)
- except Exception, e:
+ except Exception as e:
if opts.trace:
import traceback
traceback.print_exc(file=sys.stdout)
else:
- print "** ERROR ** %s" % str(e)
+ print("** ERROR ** %s" % str(e))