Log when closing DB.
This commit is contained in:
parent
a514ed5ff3
commit
e8e4a3dbc0
2 changed files with 4 additions and 1 deletions
|
@ -1676,6 +1676,7 @@ class PhotoDB(
|
|||
return f'PhotoDB(data_directory={self.data_directory})'
|
||||
|
||||
def close(self) -> None:
|
||||
log.debug('Closing PhotoDB.')
|
||||
super().close()
|
||||
|
||||
if getattr(self, 'ephemeral', False):
|
||||
|
|
|
@ -68,7 +68,9 @@ def etiquette_flask_launch(
|
|||
http.serve_forever()
|
||||
except KeyboardInterrupt:
|
||||
log.info('Goodbye')
|
||||
return 0
|
||||
|
||||
backend.common.P.close()
|
||||
return 0
|
||||
|
||||
def etiquette_flask_launch_argparse(args):
|
||||
return etiquette_flask_launch(
|
||||
|
|
Loading…
Reference in a new issue