Commit c35547f1 authored by Luca Falavigna's avatar Luca Falavigna

Define first and last for JSONLogger

parent b87ebf11
...@@ -34,6 +34,7 @@ from collections import defaultdict ...@@ -34,6 +34,7 @@ from collections import defaultdict
class DebomaticModule_JSONLoggerStart: class DebomaticModule_JSONLoggerStart:
def __init__(self): def __init__(self):
self.logger = DebomaticModule_JSONLogger() self.logger = DebomaticModule_JSONLogger()
self.first = True
def pre_chroot(self, args): def pre_chroot(self, args):
self.logger.pre_chroot(args) self.logger.pre_chroot(args)
...@@ -45,6 +46,7 @@ class DebomaticModule_JSONLoggerStart: ...@@ -45,6 +46,7 @@ class DebomaticModule_JSONLoggerStart:
class DebomaticModule_JSONLoggerStop: class DebomaticModule_JSONLoggerStop:
def __init__(self): def __init__(self):
self.logger = DebomaticModule_JSONLogger() self.logger = DebomaticModule_JSONLogger()
self.last = True
def post_chroot(self, args): def post_chroot(self, args):
self.logger.post_chroot(args) self.logger.post_chroot(args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment