Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
changes mm_log_location setting to more apt mm_plugin_logs_location
Browse files Browse the repository at this point in the history
  • Loading branch information
joeferraro committed Aug 22, 2015
1 parent 80be357 commit f0c51c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ def setup_logging():
logging.raiseExceptions = False
logging.basicConfig(level=logging.DEBUG)

log_location = settings.get('mm_log_location', tempfile.gettempdir())
log_location = settings.get('mm_plugin_logs_location', tempfile.gettempdir())
logging_handler = RotatingFileHandler(os.path.join(log_location, "mmst.log"), maxBytes=1*1024*1024, backupCount=5)

#mm log setup
global logger
logger = logging.getLogger('mmst')
logger.setLevel(logging.DEBUG)
logger.propagate = False
logger.propagate = False
logger.addHandler(logging_handler)
except:
pass #TODO: need to handle this permission denied error (https://github.com/joeferraro/MavensMate-SublimeText/issues/293)
Expand All @@ -40,12 +40,12 @@ def debug(msg, obj=None):
print('[MAVENSMATE]:',msg)
else:
logger.debug(msg)
print('[MAVENSMATE]:',msg)
print('[MAVENSMATE]:',msg)
except:
if obj != None and type(msg) is str:
print('[MAVENSMATE]: ' + msg + ' ', obj)
elif obj == None and type(msg) is str:
print('[MAVENSMATE]:',msg)
else:
print('[MAVENSMATE]:',msg)
print('[MAVENSMATE]:',msg)

5 changes: 3 additions & 2 deletions mavensmate.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ To override default MavensMate settings, modify user-specific settings (MavensMa
//if true, MavensMate will hook into the Sublime Text completions API to offer code assistance
"mm_autocomplete" : true,

//location where mm debug log should be placed (must be existing path)
//location where MavensMate for Sublime Text debug logs should be placed (must be existing path)
//log file will be named mmst.log
//windows users: please set like so: C:\\path\\to\\your\\logs
"mm_log_location" : "",
"mm_plugin_logs_location" : "",

//if true, mavensmate will send anonymous usage statistics (NEVER sensitive information like usernames/passwords/etc) for development, reporting, & debugging purposes (see util.py for source of the call)
"mm_send_usage_statistics" : true,
Expand Down

0 comments on commit f0c51c0

Please sign in to comment.