mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
small fixes
This commit is contained in:
@ -3,7 +3,8 @@ import re
|
|||||||
import tempfile
|
import tempfile
|
||||||
import contextlib
|
import contextlib
|
||||||
import shutil
|
import shutil
|
||||||
import _thread
|
#import _thread
|
||||||
|
import threading
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from time import sleep
|
from time import sleep
|
||||||
@ -85,7 +86,8 @@ def setup_mounts(config):
|
|||||||
if interval:
|
if interval:
|
||||||
logging.debug("[FS] Starting thread to sync %s (interval: %d)",
|
logging.debug("[FS] Starting thread to sync %s (interval: %d)",
|
||||||
options['mount'], interval)
|
options['mount'], interval)
|
||||||
_thread.start_new_thread(m.daemonize, (interval,))
|
threading.Thread(target=m.daemonize, args=(interval,),name="File Sys").start()
|
||||||
|
#_thread.start_new_thread(m.daemonize, (interval,))
|
||||||
else:
|
else:
|
||||||
logging.debug("[FS] Not syncing %s, because interval is 0",
|
logging.debug("[FS] Not syncing %s, because interval is 0",
|
||||||
options['mount'])
|
options['mount'])
|
||||||
|
@ -217,7 +217,7 @@ class LastSession(object):
|
|||||||
def setup_logging(args, config):
|
def setup_logging(args, config):
|
||||||
cfg = config['main']['log']
|
cfg = config['main']['log']
|
||||||
filename = cfg['path']
|
filename = cfg['path']
|
||||||
filenameDebug = cfg['path']
|
filenameDebug = cfg['path-debug']
|
||||||
|
|
||||||
#global formatter
|
#global formatter
|
||||||
formatter = logging.Formatter("[%(asctime)s] [%(levelname)s] [%(threadName)s] : %(message)s")
|
formatter = logging.Formatter("[%(asctime)s] [%(levelname)s] [%(threadName)s] : %(message)s")
|
||||||
|
Reference in New Issue
Block a user