Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/10se1ucgo/DisableWinTracking.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuined1 <ruined1@gmail.com>2015-09-06 02:47:49 +0300
committerRuined1 <ruined1@gmail.com>2015-09-06 02:47:49 +0300
commit8618866c0a71f936f6eaba2123ba5cb0c9f69ed3 (patch)
tree4b02e62e242e8aaaafd7fd303b772c453bb7e64e
parent4d3cf9012985c783cec66faa50a84b1a39329906 (diff)
parent2dc295f75142e98a8dffa9cacabcd6ea87ba46d2 (diff)
Merge pull request #73 from 10se1ucgo/patch-1
RELEASE ASAP: Much needed debug logging addition
-rw-r--r--run.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/run.py b/run.py
index 792c013..2118a7a 100644
--- a/run.py
+++ b/run.py
@@ -1,4 +1,4 @@
-import ctypes
+import ctypes
import logging
import os
import subprocess
@@ -339,7 +339,8 @@ def cleardiagtracklog():
subprocess.call("echo y|cacls {0} /d SYSTEM".format(logfile), shell=True) # Prevent modification to file
print "DiagTrack Log: Succesfully cleared and locked."
except (WindowsError, IOError):
- logging.exception("DiagTrack Log: Unable to clear/lock")
+ logging.exception("DiagTrack Log: Unable to clear/lock. THIS IS ONLY AN ISSUE IF THIS IS YOUR FIRST TIME "
+ "RUNNING THIS PROGRAM! Please DO NOT submit issues on GitHub otherwise.")
print "DiagTrack Log: Unable to clear/lock"
@@ -348,7 +349,8 @@ def deleteservice(service):
win32serviceutil.RemoveService(service) # Delete service
print "Services: {0} successfully deleted.".format(service)
except pywintypes.error:
- logging.exception("Services: {0} unable to be deleted.".format(service))
+ logging.exception("Services: {0} unable to be deleted. THIS IS ONLY AN ISSUE IF THIS IS YOUR FIRST TIME "
+ "RUNNING THIS PROGRAM! Please DO NOT submit issues on GitHub otherwise.".format(service))
print "Services: {0} unable to be deleted.".format(service)
@@ -357,7 +359,8 @@ def disableservice(service):
win32serviceutil.StopService(service) # Disable service
print "Services: {0} successfully stopped.".format(service)
except pywintypes.error:
- logging.exception("Services: {0} unable to be stopped.".format(service))
+ logging.exception("Services: {0} unable to be stopped. THIS IS ONLY AN ISSUE IF THIS IS YOUR FIRST TIME "
+ "RUNNING THIS PROGRAM! Please DO NOT submit issues on GitHub otherwise.".format(service))
print "Services: {0} unable to be stopped.".format(service)