X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=t%2Fmoe%2Fexts%2Fdummy.py;h=9e15aa312e9967ff56353424e6835120c06f168e;hb=420a49640eb8a89b578c390a939bc0ba818f9a7e;hp=3ec5816565644b6a8f6c053f61875d5e58c93fa2;hpb=68ef17dd956952f2a559bf9250628aa366884521;p=moe.git diff --git a/t/moe/exts/dummy.py b/t/moe/exts/dummy.py index 3ec5816..9e15aa3 100644 --- a/t/moe/exts/dummy.py +++ b/t/moe/exts/dummy.py @@ -5,21 +5,23 @@ Debug dummy extension. Adds several info-printing hooks to both pipelines. """ +from moe.logs import log, userlog + def init(e): def hook_m_0(e): - e.log.info('Hey! It\'s me, the dummy extension in your main pipeline! (at time 0)') + log.info('Hey! It\'s me, the dummy extension in your main pipeline! (at time 0)') - e.main_pipe.insert(0, 'exts.dummy.hook_m_0', hook_m_0) + e.main_pipe.insert(0, hook_m_0) def hook_m_79(e): - e.log.info('Me, the dummy extension, requies no cleanup! (at time 79)') + log.info('Me, the dummy extension, requies no cleanup! (at time 79)') - e.main_pipe.insert(79, 'exts.dummy.hook_m_79', hook_m_79) + e.main_pipe.insert(790, hook_m_79) def hook_t_42(e): t = 'It\'s test %s and the dummy extension did nothing! (at time 42)' % e['TEST'] - e.log.info(t) - e.log.user.info(t) + log.info(t) + userlog.info(t) - e.test_pipe.insert(42, 'exts.dummy.hook_t_42', hook_t_42) + e.test_pipe.insert(420, hook_t_42)