
    Uٵg=                     |    d dl Z d dlmZ d dlmZmZmZ  e j                   ej                  e	            Z
d Zd Zy)    N)TimeoutExpired)
exceptionssystemutilc                      	 t        j                  g dd       y # t        j                  t        f$ r!} t
        j                  | |        Y d } ~ y d } ~ ww xY w)N)	systemctlstartua-timer.timer       @timeoutexc_infor   subpr   ProcessExecutionErrorr   LOGwarninges    9/usr/lib/python3/dist-packages/uaclient/timer/__init__.pyr	   r	   	   sD    #<cJ,,n= #A""#    AAAc                      	 t        j                  g dd       y # t        j                  t        f$ r!} t
        j                  | |        Y d } ~ y d } ~ ww xY w)N)r   stopr
   r   r   r   r   r   s    r   r   r      sD    #;SI,,n= #A""#r   )logging
subprocessr   uaclientr   r   r   	getLoggerreplace_top_level_logger_name__name__r   r	   r        r   <module>r#      s;     % - -g:::8DE##r"   