1
1
/**
2
- * @license r.js 2.1.4+ Mon, 04 Mar 2013 01:14:52 GMT Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
2
+ * @license r.js 2.1.4+ Mon, 04 Mar 2013 02:45:14 GMT Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
3
3
* Available via the MIT or new BSD license.
4
4
* see: http://github.com/jrburke/requirejs for details
5
5
*/
@@ -20,7 +20,7 @@ var requirejs, require, define, xpcUtil;
20
20
(function (console, args, readFileFunc) {
21
21
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
22
22
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
23
- version = '2.1.4+ Mon, 04 Mar 2013 01:14:52 GMT',
23
+ version = '2.1.4+ Mon, 04 Mar 2013 02:45:14 GMT',
24
24
jsSuffixRegExp = /\.js$/,
25
25
commandOption = '',
26
26
useLibLoaded = {},
@@ -22922,10 +22922,6 @@ define('build', function (require) {
22922
22922
config = build.createConfig(cmdConfig);
22923
22923
paths = config.paths;
22924
22924
22925
- if (config.logLevel) {
22926
- logger.logLevel(config.logLevel);
22927
- }
22928
-
22929
22925
//Remove the previous build dir, in case it contains source transforms,
22930
22926
//like the ones done with onBuildRead and onBuildWrite.
22931
22927
if (config.dir && !config.keepBuildDir && file.exists(config.dir)) {
@@ -23527,6 +23523,12 @@ define('build', function (require) {
23527
23523
}
23528
23524
}
23529
23525
}
23526
+
23527
+ //Set up log level since it can affect if errors are thrown
23528
+ //or caught and passed to errbacks while doing config setup.
23529
+ if (lang.hasProp(target, 'logLevel')) {
23530
+ logger.logLevel(target.logLevel);
23531
+ }
23530
23532
}
23531
23533
23532
23534
/**
@@ -23577,6 +23579,12 @@ define('build', function (require) {
23577
23579
lang.mixin(config, buildBaseConfig);
23578
23580
lang.mixin(config, cfg, true);
23579
23581
23582
+ //Set up log level early since it can affect if errors are thrown
23583
+ //or caught and passed to errbacks, even while constructing config.
23584
+ if (lang.hasProp(config, 'logLevel')) {
23585
+ logger.logLevel(config.logLevel);
23586
+ }
23587
+
23580
23588
if (config.buildFile) {
23581
23589
//A build file exists, load it to get more config.
23582
23590
buildFile = file.absPath(config.buildFile);
0 commit comments