Spaces:
Sleeping
Sleeping
HaochenGong commited on
Commit ·
97e7fe5
1
Parent(s): f1554a2
add log dir
Browse files- .idea/workspace.xml +25 -19
- app.py +2 -0
.idea/workspace.xml
CHANGED
|
@@ -4,14 +4,7 @@
|
|
| 4 |
<option name="autoReloadType" value="SELECTIVE" />
|
| 5 |
</component>
|
| 6 |
<component name="ChangeListManager">
|
| 7 |
-
<list default="true" id="5e4481c0-7ba2-42e4-bbe6-4c36a0d36baa" name="Changes" comment="">
|
| 8 |
-
<change afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
|
| 9 |
-
<change afterPath="$PROJECT_DIR$/main" afterDir="false" />
|
| 10 |
-
<change afterPath="$PROJECT_DIR$/packages.txt" afterDir="false" />
|
| 11 |
-
<change afterPath="$PROJECT_DIR$/requirements.txt" afterDir="false" />
|
| 12 |
-
<change afterPath="$PROJECT_DIR$/run_sem_test.py" afterDir="false" />
|
| 13 |
-
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
|
| 14 |
-
</list>
|
| 15 |
<option name="SHOW_DIALOG" value="false" />
|
| 16 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
| 17 |
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -28,18 +21,18 @@
|
|
| 28 |
<option name="hideEmptyMiddlePackages" value="true" />
|
| 29 |
<option name="showLibraryContents" value="true" />
|
| 30 |
</component>
|
| 31 |
-
<component name="PropertiesComponent">
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
}
|
| 42 |
-
}
|
| 43 |
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
| 44 |
<component name="TaskManager">
|
| 45 |
<task active="true" id="Default" summary="Default task">
|
|
@@ -50,10 +43,23 @@
|
|
| 50 |
<updated>1723386888312</updated>
|
| 51 |
<workItem from="1723386893769" duration="12000" />
|
| 52 |
<workItem from="1723386970626" duration="451000" />
|
|
|
|
| 53 |
</task>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
<servers />
|
| 55 |
</component>
|
| 56 |
<component name="TypeScriptGeneratedFilesManager">
|
| 57 |
<option name="version" value="3" />
|
| 58 |
</component>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
</project>
|
|
|
|
| 4 |
<option name="autoReloadType" value="SELECTIVE" />
|
| 5 |
</component>
|
| 6 |
<component name="ChangeListManager">
|
| 7 |
+
<list default="true" id="5e4481c0-7ba2-42e4-bbe6-4c36a0d36baa" name="Changes" comment="create" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
<option name="SHOW_DIALOG" value="false" />
|
| 9 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
| 10 |
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
|
|
| 21 |
<option name="hideEmptyMiddlePackages" value="true" />
|
| 22 |
<option name="showLibraryContents" value="true" />
|
| 23 |
</component>
|
| 24 |
+
<component name="PropertiesComponent">{
|
| 25 |
+
"keyToString": {
|
| 26 |
+
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
| 27 |
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
| 28 |
+
"WebServerToolWindowFactoryState": "false",
|
| 29 |
+
"node.js.detected.package.eslint": "true",
|
| 30 |
+
"node.js.detected.package.tslint": "true",
|
| 31 |
+
"node.js.selected.package.eslint": "(autodetect)",
|
| 32 |
+
"node.js.selected.package.tslint": "(autodetect)",
|
| 33 |
+
"vue.rearranger.settings.migration": "true"
|
| 34 |
}
|
| 35 |
+
}</component>
|
| 36 |
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
| 37 |
<component name="TaskManager">
|
| 38 |
<task active="true" id="Default" summary="Default task">
|
|
|
|
| 43 |
<updated>1723386888312</updated>
|
| 44 |
<workItem from="1723386893769" duration="12000" />
|
| 45 |
<workItem from="1723386970626" duration="451000" />
|
| 46 |
+
<workItem from="1723387453009" duration="649000" />
|
| 47 |
</task>
|
| 48 |
+
<task id="LOCAL-00001" summary="create">
|
| 49 |
+
<created>1723387548126</created>
|
| 50 |
+
<option name="number" value="00001" />
|
| 51 |
+
<option name="presentableId" value="LOCAL-00001" />
|
| 52 |
+
<option name="project" value="LOCAL" />
|
| 53 |
+
<updated>1723387548126</updated>
|
| 54 |
+
</task>
|
| 55 |
+
<option name="localTasksCounter" value="2" />
|
| 56 |
<servers />
|
| 57 |
</component>
|
| 58 |
<component name="TypeScriptGeneratedFilesManager">
|
| 59 |
<option name="version" value="3" />
|
| 60 |
</component>
|
| 61 |
+
<component name="VcsManagerConfiguration">
|
| 62 |
+
<MESSAGE value="create" />
|
| 63 |
+
<option name="LAST_COMMIT_MESSAGE" value="create" />
|
| 64 |
+
</component>
|
| 65 |
</project>
|
app.py
CHANGED
|
@@ -22,6 +22,8 @@ description = "Automated Contextual Privacy Policies Generation for Mobile Apps"
|
|
| 22 |
|
| 23 |
# log
|
| 24 |
log_file_path = 'logs/app.log'
|
|
|
|
|
|
|
| 25 |
|
| 26 |
# set log handler(Generate one log file per day and keep only the latest 7 files)
|
| 27 |
handler = TimedRotatingFileHandler(log_file_path, when='W0', interval=1, backupCount=7)
|
|
|
|
| 22 |
|
| 23 |
# log
|
| 24 |
log_file_path = 'logs/app.log'
|
| 25 |
+
if not os.path.exists(log_file_path):
|
| 26 |
+
os.makedirs(log_file_path)
|
| 27 |
|
| 28 |
# set log handler(Generate one log file per day and keep only the latest 7 files)
|
| 29 |
handler = TimedRotatingFileHandler(log_file_path, when='W0', interval=1, backupCount=7)
|