Answer the question
In order to leave comments, you need to log in
Why doesn't logging.log.warning pass control down the call stack?
def do_smth():
if condition:
logging.log.warning("text")
print('test')
Answer the question
In order to leave comments, you need to log in
var newer = require('gulp-newer');
const imagemin = require('gulp-imagemin');
const imageminPngquant = require('imagemin-pngquant');
const imageminMozjpeg = require('imagemin-mozjpeg');
var img_bf_min = './src/img-source/*', // Изображения для минимайза
img_af_min = './src/img/'; // Изображения минимизированные
gulp.task('imgmin', function() {
return gulp.src(img_bf_min)
.pipe(newer(img_bf_min))
.pipe(imagemin([
imageminPngquant(),
imageminMozjpeg({
progressive: true
})
],{
verbose: true
}))
.pipe(gulp.dest(img_af_min))
});
Have you turned to psychics or to whom?
Why doesn't logging.log.warning pass control down the call stack?
condition
, probably, you just quoted a piece of code and somewhere above logging is imported or created, condition is declared globally ... and that’s it. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question