mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-04 22:17:24 +00:00
(re-)structure code - use include-files now
- move gobals and other stuff to includes - extract code from boswatch.py to include-files bugfix in BosMon-plugin
This commit is contained in:
parent
c296af22b0
commit
e67a357d8e
15 changed files with 243 additions and 196 deletions
|
|
@ -1,9 +1,6 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: cp1252 -*-
|
||||
|
||||
import logging # Global logger
|
||||
import globals # Global variables
|
||||
|
||||
#########
|
||||
# USAGE
|
||||
#
|
||||
|
|
@ -23,6 +20,11 @@ import globals # Global variables
|
|||
# usable Loglevels debug|info|warning|error|exception|critical
|
||||
# if you use .exception in Try:Exception: Construct, it logs the Python EX.message too
|
||||
|
||||
import logging # Global logger
|
||||
|
||||
from includes import globals # Global variables
|
||||
|
||||
|
||||
def run(typ,freq,data):
|
||||
try:
|
||||
#ConfigParser
|
||||
|
|
@ -45,4 +47,4 @@ def run(typ,freq,data):
|
|||
########## User Plugin CODE ##########
|
||||
|
||||
except:
|
||||
logging.exception("unknown error")
|
||||
logging.exception("unknown error")
|
||||
Loading…
Add table
Add a link
Reference in a new issue