Yaron Koresh commited on
Commit
d1da1b3
·
verified ·
1 Parent(s): 7a3ac2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -25,13 +25,8 @@ import jax.numpy as jnp
25
  import sys
26
  import warnings
27
 
28
- def err(msg):
29
- if (str(type(msg)) == "<class 'str'>" or str(type(msg)) == "<class 'int'>") and len(str(msg).replace("\n","").replace("\t","").strip()) >= 1:
30
- print( "\n >>> [!!!] "+msg+"\n" )
31
- pass
32
-
33
  warnings.filterwarnings("ignore")
34
- sys.stderr.write = err
35
  root = logging.getLogger()
36
  root.setLevel(logging.DEBUG)
37
  handler = logging.StreamHandler(sys.stdout)
@@ -39,6 +34,10 @@ handler.setLevel(logging.DEBUG)
39
  formatter = logging.Formatter('\n >>> [%(levelname)s] %(asctime)s %(name)s: %(message)s\n')
40
  handler.setFormatter(formatter)
41
  root.addHandler(handler)
 
 
 
 
42
 
43
  last_motion=None
44
  fps=15
 
25
  import sys
26
  import warnings
27
 
 
 
 
 
 
28
  warnings.filterwarnings("ignore")
29
+
30
  root = logging.getLogger()
31
  root.setLevel(logging.DEBUG)
32
  handler = logging.StreamHandler(sys.stdout)
 
34
  formatter = logging.Formatter('\n >>> [%(levelname)s] %(asctime)s %(name)s: %(message)s\n')
35
  handler.setFormatter(formatter)
36
  root.addHandler(handler)
37
+ handler2 = logging.StreamHandler(sys.stderr)
38
+ formatter = logging.Formatter('\n >>> [%(levelname)s] %(asctime)s %(name)s: %(message)s\n')
39
+ handler2.setFormatter(formatter)
40
+ root.addHandler(handler2)
41
 
42
  last_motion=None
43
  fps=15