mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
Fix issues as reported by bandit or mark as nosec
Nothing worrying, but good to have checked this regardless and important to have a green pipeline. Fix #175
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import time
|
||||
import random
|
||||
import logging
|
||||
|
||||
from bugsink.utils import nc_rnd
|
||||
from .decorators import shared_task
|
||||
|
||||
# for the example tasks, we pick a non-snappea logger on purpose, to check that non-snappea logs are written in the
|
||||
@@ -12,7 +12,7 @@ logger = logging.getLogger("bugsink")
|
||||
@shared_task
|
||||
def random_duration():
|
||||
logger.info("Starting something of a random duration")
|
||||
time.sleep(random.random() * 10)
|
||||
time.sleep(nc_rnd.random() * 10)
|
||||
|
||||
|
||||
@shared_task
|
||||
|
||||
Reference in New Issue
Block a user