React DirectLine chat doesn't works. Cannot find source files - reactjs

Good morning to all, I'm new on BotFrameworkand React and I'm trying to embed my bot to my React website but it is not showing and I can see some errors on Node.js console.
I copied&pasted the sample on my code but now it needs the adaptiveCardsHostConfig and bot attribute, so I tried to add it and it fails.
Please, could you help me to know where I'm wrong?
First of all I executed npm install botframework-webchat command on console and then set the code above:
import { Chat } from 'botframework-webchat';
...
<Chat
adaptiveCardsHostConfig={{ fontFamily: '"Myriad Pro", sans-serif' }}
directLine={{ secret: 'asV4w25M-8I.cwA._-M.o-eAeWrQg0MMJcup3bU8klFEPiKoOhIPV8HZHytS0r0' }}
user={{ id: 'userid', name: 'username' }}
bot={{ id: 'botID', name: 'botName' }}
resize="detect"
/>
...
These are the warnings on node.js console:
WARNING in ./~/adaptivecards/lib/adaptivecards.js
(Emitted value instead of an instance of Error) Cannot find source file '../src/adaptivecards.ts': Error: Can't resolve '../src/adaptivecards.ts' in 'C:\Users\dsanchis\source\repos\Modern Atum\BackEnd\CP.ModernAtum.API\node_modules\adaptivecards\lib'
# ./~/botframework-webchat/built/Attachment.js 6:22-46
# ./~/botframework-webchat/built/BotChat.js
# ./app/src/components/Header/Header.tsx
# ./app/src/components/Layout/Layout.tsx
# ./app/src/components/Search/Search.tsx
# ./app/src/components/GroupsExplorer/GroupsExplorer.tsx
# ./app/src/index.tsx
# multi es6-promise whatwg-fetch ./app/src/index.tsx
WARNING in ./~/adaptivecards/lib/enums.js
(Emitted value instead of an instance of Error) Cannot find source file '../src/enums.ts': Error: Can't resolve '../src/enums.ts' in 'C:\Users\dsanchis\source\repos\Modern Atum\BackEnd\CP.ModernAtum.API\node_modules\adaptivecards\lib'
# ./~/adaptivecards/lib/adaptivecards.js 7:9-27
# ./~/botframework-webchat/built/Attachment.js
# ./~/botframework-webchat/built/BotChat.js
# ./app/src/components/Header/Header.tsx
# ./app/src/components/Layout/Layout.tsx
# ./app/src/components/Search/Search.tsx
# ./app/src/components/GroupsExplorer/GroupsExplorer.tsx
# ./app/src/index.tsx
# multi es6-promise whatwg-fetch ./app/src/index.tsx
WARNING in ./~/adaptivecards/lib/utils.js
(Emitted value instead of an instance of Error) Cannot find source file '../src/utils.ts': Error: Can't resolve '../src/utils.ts' in 'C:\Users\dsanchis\source\repos\Modern Atum\BackEnd\CP.ModernAtum.API\node_modules\adaptivecards\lib'
# ./~/adaptivecards/lib/adaptivecards.js 9:14-32
# ./~/botframework-webchat/built/Attachment.js
# ./~/botframework-webchat/built/BotChat.js
# ./app/src/components/Header/Header.tsx
# ./app/src/components/Layout/Layout.tsx
# ./app/src/components/Search/Search.tsx
# ./app/src/components/GroupsExplorer/GroupsExplorer.tsx
# ./app/src/index.tsx
# multi es6-promise whatwg-fetch ./app/src/index.tsx
WARNING in ./~/adaptivecards/lib/host-config.js
(Emitted value instead of an instance of Error) Cannot find source file '../src/host-config.ts': Error: Can't resolve '../src/host-config.ts' in 'C:\Users\dsanchis\source\repos\Modern Atum\BackEnd\CP.ModernAtum.API\node_modules\adaptivecards\lib'
# ./~/adaptivecards/lib/adaptivecards.js 8:9-33
# ./~/botframework-webchat/built/Attachment.js
# ./~/botframework-webchat/built/BotChat.js
# ./app/src/components/Header/Header.tsx
# ./app/src/components/Layout/Layout.tsx
# ./app/src/components/Search/Search.tsx
# ./app/src/components/GroupsExplorer/GroupsExplorer.tsx
# ./app/src/index.tsx
# multi es6-promise whatwg-fetch ./app/src/index.tsx
WARNING in ./~/adaptivecards/lib/text-formatters.js
(Emitted value instead of an instance of Error) Cannot find source file '../src/text-formatters.ts': Error: Can't resolve '../src/text-formatters.ts' in 'C:\Users\dsanchis\source\repos\Modern Atum\BackEnd\CP.ModernAtum.API\node_modules\adaptivecards\lib'
# ./~/adaptivecards/lib/card-elements.js 16:21-49
# ./~/adaptivecards/lib/adaptivecards.js
# ./~/botframework-webchat/built/Attachment.js
# ./~/botframework-webchat/built/BotChat.js
# ./app/src/components/Header/Header.tsx
# ./app/src/components/Layout/Layout.tsx
# ./app/src/components/Search/Search.tsx
# ./app/src/components/GroupsExplorer/GroupsExplorer.tsx
# ./app/src/index.tsx
# multi es6-promise whatwg-fetch ./app/src/index.tsx
WARNING in ./~/adaptivecards/lib/card-elements.js
(Emitted value instead of an instance of Error) Cannot find source file '../src/card-elements.ts': Error: Can't resolve '../src/card-elements.ts' in 'C:\Users\dsanchis\source\repos\Modern Atum\BackEnd\CP.ModernAtum.API\node_modules\adaptivecards\lib'
# ./~/adaptivecards/lib/adaptivecards.js 6:9-35
# ./~/botframework-webchat/built/Attachment.js
# ./~/botframework-webchat/built/BotChat.js
# ./app/src/components/Header/Header.tsx
# ./app/src/components/Layout/Layout.tsx
# ./app/src/components/Home/Home.tsx
# ./app/src/components/GroupsExplorer/GroupsExplorer.tsx
# ./app/src/index.tsx
# multi es6-promise whatwg-fetch ./app/src/index.tsx
And here the error on Chrome Console:
Uncaught TypeError: action$.ofType(...).map(...).filter(...).throttleTime is not a function
at sendTypingEpic (app.bundle.js:10062)
at app.bundle.js:78455
at Array.map (<anonymous>)
at app.bundle.js:78454
at MapSubscriber.project (app.bundle.js:78520)
at MapSubscriber._next (app.bundle.js:27998)
at MapSubscriber.Subscriber.next (app.bundle.js:3631)
at Subject.next (app.bundle.js:8134)
at app.bundle.js:78530
at app.bundle.js:78646
UPDATE(15/05/2018):
Now DirectLine component renders on page, but it has not proper style and I can't apply a style, just set with and height. It shows like below (with a transparent background, chooser file button and field...):
DirectLine bot showed without proper style
The warnings on Node.js console still appearing and now in Chrome console I can see a new error message:
Uncaught TypeError: Cannot read property 'offsetWidth' of null
at e.componentDidUpdate (botchat.js:34)
at t.notifyAll (botchat.js:34)
at r.close (botchat.js:34)
at r.closeAll (botchat.js:20)
at r.perform (botchat.js:20)
at o.perform (botchat.js:20)
at o.perform (botchat.js:20)
at Object.S [as flushBatchedUpdates] (botchat.js:20)
at r.closeAll (botchat.js:20)
at r.perform (botchat.js:20)
How can I solve the styles and add custom?

It's due to the .map files in the output (in the lib and dist folders). Remove them and you get rid of the webpack warnings.
Also see reported issue here: https://github.com/Microsoft/AdaptiveCards/issues/1492

Related

React-planner complies but produces no output

Description of how I arrived at the issue: Whilst relatively new to react I have some years experience with Node.js, so I would expect to be able to get a library working.
Installation tripped a couple of times in the catalogue, one of the mtl files referenced a png when the file was a jpg - this was changed and seems successful.
And another file has
import ImageFul from './imageful';
which had to be changed to
import ImageFul from './imageful.jsx';
which I changed but does this mean that I am missing some part of the toolchain?
The main (Github) page does not mention any prerequisites in terms of libraries or loaders (I had to set up and configure babel-plugin-import-glob) what so I am asking myself what other npm dependencies are not installed with react-planner?
Anyway having gone through a painful process, the package finally compiled - but shows nothing and gives this set of errors in the Chrome console:
react_devtools_backend.js:6 [BABEL] Note: The code generator has deoptimised the styling of "http://planner.appl/js/dist/main.js" as it exceeds the max of "500KB".
r # react_devtools_backend.js:6
i # babel.min.js:10
t # babel.min.js:10
t.default # babel.min.js:10
n.generate # babel.min.js:2
n.transform # babel.min.js:2
(anonymous) # babel.min.js:14
n.wrap # babel.min.js:2
e.transform # babel.min.js:14
s # babel.min.js:1
r # babel.min.js:24
i # babel.min.js:24
r # babel.min.js:24
e.src.n..l.content # babel.min.js:24
n.onreadystatechange # babel.min.js:24
XMLHttpRequest.send (async)
s # babel.min.js:24
(anonymous) # babel.min.js:24
o # babel.min.js:24
u # babel.min.js:24
f # babel.min.js:1
(anonymous) # babel.min.js:1
main.js:1 Uncaught TypeError: e.substr is not a function
at $a.load (:1:417556)
at ts.load (:1:418437)
at Module. (:45:1223858)
at n (:1:356)
at :1:1198
at :1:1210
at i (babel.min.js:24)
at r (babel.min.js:24)
at e.src.n..l.content (babel.min.js:24)
at XMLHttpRequest.n.onreadystatechange (babel.min.js:24)
load # main.js:1
load # main.js:1
(anonymous) # main.js:53
n # main.js:1
(anonymous) # main.js:1
(anonymous) # main.js:1
i # babel.min.js:24
r # babel.min.js:24
e.src.n..l.content # babel.min.js:24
n.onreadystatechange # babel.min.js:24
XMLHttpRequest.send (async)
s # babel.min.js:24
(anonymous) # babel.min.js:24
o # babel.min.js:24
u # babel.min.js:24
f # babel.min.js:1
(anonymous) # babel.min.js:1
[object%20Module]:1 GET {application url}[object%20Module] 404 (Not Found)
Any advice gratefully received.

fbt internationalization: ERROR in ./src/example/Example.react.js Module not found: Error: Can't resolve 'fbt'

I try to use new internationalization library from facebook - fbt, I follow by steps in doc:
git clone git#github.com:facebookincubator/fbt.git;
cd fbt/demo-app;
yarn install; # pull in dependencies
yarn manifest; # generate fbt enum manifests and source manifests
yarn collect-fbts; # Collect all fbt phrases from source
yarn translate-fbts; # Generate the translation payloads
yarn build;
yarn start; # Checkout your locally running server at localhost:8081
And in next I got next error on yarn build step:
ERROR in ./src/example/Example.react.js
Module not found: Error: Can't resolve 'fbt' in '/home/test/projects/fbt/demo-app/src/example'
# ./src/example/Example.react.js 36:0-80 37:0-4 100:17-31 104:18-29 113:6-23 141:9-12 143:43-46 145:43-46 159:10-27 164:15-29 165:9-12 168:15-29 169:9-12 172:15-29 173:9-12 176:15-29 177:9-12 185:21-24 198:21-24 219:15-29 220:9-12 223:15-29 224:9-12 227:15-29 228:9-12 231:15-29 232:9-12 236:9-12 238:10-13 240:58-61 243:9-12 246:10-13 256:21-24 289:15-26 290:9-12 293:15-26 294:9-12 297:15-26 298:9-12 301:15-26 302:9-12 305:15-26 306:9-12 309:15-26 310:9-12 314:9-12 340:10-13 344:32-35 344:78-81 346:9-12 346:27-30 348:9-12 352:12-15 362:9-12
# ./src/root.js
My apologies! It looks like we were missing a step in our documentation! You'll need to run yarn in the top-level first (to build the runtime library):
git clone git#github.com:facebookincubator/fbt.git;
cd fbt;
yarn;
cd demo-app
yarn ...

AOSP Build TARGET_PRODUCT fails

I'm trying to build an external tool with AOSP. My OS is Linux, Distribution ArchLinux (i3wm), but to compile AOSP I use Ubuntu in Docker (https://android.googlesource.com/platform/build/+/master/tools/docker)
First step:
# init repo
repo init -u https://android.googlesource.com/platform/manifest -b android-8.0.0_r36 --depth=1
repo sync
. build/envsetup.sh # set up environment
lunch aosp_arm-eng # select target to build
Second step: select tool and build
cd external/selinux
mma -j48
Output:
ninja: error: unknown target 'MODULES-IN-'
15:41:55 ninja failed with: exit status 1
make: *** [run_soong_ui] Error 1
make: Leaving directory `/home/user/aosp'
#### make failed to build some targets (6 seconds) ###
Another tool
cd external/wpa_supplicant_8
mma -j48
Output:
ninja: error: unknown target 'MODULES-IN-external-wpa_supplicant_8'
15:41:55 ninja failed with: exit status 1
make: *** [run_soong_ui] Error 1
make: Leaving directory `/home/user/aosp'
#### make failed to build some targets (2 seconds) ###
This happens with any aosp generic target:
Lunch menu... pick a combo:
1. aosp_arm-eng # fails
2. aosp_arm64-eng # fails
3. aosp_mips-eng # fails
4. aosp_mips64-eng # fails
5. aosp_x86-eng # fails
6. aosp_x86_64-eng # fails
7. full_fugu-userdebug # works
8. aosp_fugu-userdebug # works
9. car_emu_arm64-userdebug # fails
10. car_emu_arm-userdebug # fails
11. car_emu_x86_64-userdebug # fails
12. car_emu_x86-userdebug # fails
13. mini_emulator_arm64-userdebug # fails
14. m_e_arm-userdebug # fails
15. m_e_mips64-eng # fails
16. m_e_mips-userdebug # fails
17. mini_emulator_x86_64-userdebug # fails
18. mini_emulator_x86-userdebug # fails
19. aosp_dragon-userdebug # works
20. aosp_dragon-eng # works
21. aosp_marlin-userdebug # works
22. aosp_marlin_svelte-userdebug # works
23. aosp_sailfish-userdebug # works
24. aosp_angler-userdebug # works
25. aosp_bullhead-userdebug # works
26. aosp_bullhead_svelte-userdebug # works
27. hikey-userdebug # works
I want to compile some binary tools in all arch: arm, arm64, x86 and x86_64.
Why aosp_arm-eng does not work? Or how can I change the CPU architecture from non generic aosp target?
Using tapas does not work.
You probably need to make a full AOSP build before trying to use mm... shortcuts - looks like some build script files were not generated yet.
clear all the binaries from /out dir with make clean command & then try to make a full build
Actually there is no need to do a full build. Just open your Android.mk or Android.bp of the module you want to build, and look for variable MODULE_NAME.
Then from the root of the project make
mm $MODULE_NAME
It should build all the dependencies you need first.
I suggest that use the mmm command for building. Also make sure that the directory you are pointing to contains a Android.bp or Android.mk
mmm /external/selinux
Also I suggest to clean the outputs by remove the out directory or simply run:
make clean
If still you have that problem, remove the --depth=1 argument on repo init and sync it again. that argument limits the commit fetching from remote branch.
Use below commands to compile module from root dir
Goto root dir
make clean
source build/envsetup.sh
lunch "select option"
make "module name" -j8

socket.io shows dependency warnings when installing using npm

I am trying to install socket.io using npm, however whenever I run
npm run build:dll
I get the warnings/errors:
Building the Webpack DLL...
Hash: e4aec7398e03ac59c7bf
Version: webpack 3.5.5
Time: 3456ms
Asset Size Chunks Chunk Names
reactBoilerplateDeps.dll.js 4.55 MB 0 [emitted] [big] reactBoilerplateDeps
chunk {0} reactBoilerplateDeps.dll.js (reactBoilerplateDeps) 3.84 MB [entry] [rendered]
WARNING in ./node_modules/socket.io/lib/index.js
108:11-32 Critical dependency: the request of a dependency is an expression
WARNING in ./node_modules/ws/lib/BufferUtil.js
Module not found: Error: Can't resolve 'bufferutil' in '/Users/***/node_modules/ws/lib'
# ./node_modules/ws/lib/BufferUtil.js 35:21-42
# ./node_modules/ws/lib/Sender.js
# ./node_modules/ws/index.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/ws/lib/Validation.js
Module not found: Error: Can't resolve 'utf-8-validate' in '/Users/***/node_modules/ws/lib'
# ./node_modules/ws/lib/Validation.js 10:22-47
# ./node_modules/ws/lib/Receiver.js
# ./node_modules/ws/index.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_darwin_46.node
Module parse failed: /Users/***/node_modules/uws/uws_darwin_46.node Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_darwin_47.node
Module parse failed: /Users/***/node_modules/uws/uws_darwin_47.node Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_darwin_48.node
Module parse failed: /Users/***/node_modules/uws/uws_darwin_48.node Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_darwin_51.node
Module parse failed: /Users/***/node_modules/uws/uws_darwin_51.node Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_darwin_57.node
Module parse failed: /Users/***/node_modules/uws/uws_darwin_57.node Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_linux_46.node
Module parse failed: /Users/***/node_modules/uws/uws_linux_46.node Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_linux_47.node
Module parse failed: /Users/***/node_modules/uws/uws_linux_47.node Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_linux_48.node
Module parse failed: /Users/***/node_modules/uws/uws_linux_48.node Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_linux_51.node
Module parse failed: /Users/***/node_modules/uws/uws_linux_51.node Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_win32_48.node
Module parse failed: /Users/***/node_modules/uws/uws_win32_48.node Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_win32_51.node
Module parse failed: /Users/***/node_modules/uws/uws_win32_51.node Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
ERROR in ./node_modules/socket.io/lib/index.js
Module not found: Error: Can't resolve 'fs' in '/Users/***/node_modules/socket.io/lib'
# ./node_modules/socket.io/lib/index.js 7:11-24 9:13-26
# dll reactBoilerplateDeps
I have tired adding node: { fs: 'empty' } to my webpack conf, and deleting and node_modules folder, however it doesnt fix it. This issue has now also appeared on one of my old projects which I have updated.
I have found people with similar issues, however none of the fixes have worked.
"socket.io": "^2.0.4",
"webpack": "3.5.5",
I tired installing socket.io-client and I get even more errors (edit: I seem to need both for a react app).
My webpack config is the same as the react boilerplates. Using a Mac and Webstorm if this helps.
I found that I had used:
node: {
fs: 'empty',
}
In the wrong place and needed to add:
noParse: /ws/,
externals: ['ws'],
to webpack.base.babel
This cleared up all of the errors
use Webpack node modules externals to ignore all modules from node_module dir and built-in modules
var nodeExternals = require('webpack-node-externals');
...
module.exports = {
...
target: 'node', // in order to ignore built-in modules like path, fs, etc.
externals: [nodeExternals()], // in order to ignore all modules in node_modules folder
...
};

How do I see changes made to a kernel module?

I have a module running on my Linux machine and can see it using lsmod command. Now I made some changes (added some printk) to this module, recompiled it and got the .ko.
Now I did rmmod to remove this module (some other modules also which are using this module), did insmod xxx.ko and rebooted the system.
Now where do I see the statements added using printk? I tried to see using
dmesg grep | "SPI RW"
But I couldn't find anything. What am I doing wrong here?
Try vim /var/log/messages or open messages in a text editor to verify.
For enabling /var/log/messages, edit file /etc/rsyslog.d/50-default.conf
Change the following paragraph:
...
#
# Some "catch-all" log files.
#
#*.=debug;\
# auth,authpriv.none;\
# news.none;mail.none -/var/log/debug
#*.=info;*.=notice;*.=warn;\
# auth,authpriv.none;\
# cron,daemon.none;\
# mail,news.none -/var/log/messages
....
to the following:
...
#
# Some "catch-all" log files.
#
*.=debug;\
auth,authpriv.none;\
news.none;mail.none -/var/log/debug
*.=info;*.=notice;*.=warn;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none -/var/log/messages
...
and do restart rsyslog.

Resources