Skip to content

Commit 780b4f9

Browse files
committed
fix: [background update] fix logger
1 parent ff2b620 commit 780b4f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/update-background.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
##################################
2020
# Import Project packages
2121
##################################
22+
from lib import ail_logger
2223
from lib import ail_updates
2324

2425
logging.config.dictConfig(ail_logger.get_config(name='updates'))
2526
def launch_background_upgrade(version):
2627
logger = logging.getLogger()
27-
update.set_error('Error Updater Script')
28-
print('launching background update', version)
28+
logger.warning(f'launching background update {version}')
2929
update = ail_updates.AILBackgroundUpdate(version)
3030
nb_done = update.get_nb_scripts_done()
3131
update.start()
@@ -61,6 +61,7 @@ def launch_background_upgrade(version):
6161
sys.exit(0)
6262

6363
update.end()
64+
logger.warning(f'ending background update {version}')
6465

6566

6667
if __name__ == "__main__":

0 commit comments

Comments
 (0)