Prechádzať zdrojové kódy

Merge pull request #80 from meganukebmp/master

Disable Debug in production
Tomás Pinho 6 rokov pred
rodič
commit
2668c55054
2 zmenil súbory, kde vykonal 9 pridanie a 2 odobranie
  1. 2 2
      Makefile
  2. 7 0
      README.md

+ 2 - 2
Makefile

@@ -84,10 +84,10 @@ CONFIG_RTW_REPEATER_SON = n
 CONFIG_RTW_WIFI_HAL = n
 CONFIG_ICMP_VOQ = n
 ########################## Debug ###########################
-CONFIG_RTW_DEBUG = y
+CONFIG_RTW_DEBUG = n
 # default log level is _DRV_INFO_ = 4,
 # please refer to "How_to_set_driver_debug_log_level.doc" to set the available level.
-CONFIG_RTW_LOG_LEVEL = 6
+CONFIG_RTW_LOG_LEVEL = 4
 ######################## Wake On Lan ##########################
 CONFIG_WOWLAN = n
 #bit2: deauth, bit1: unicast, bit0: magic pkt.

+ 7 - 0
README.md

@@ -53,6 +53,13 @@ Then run the installation script:
 sudo ./dkms-remove.sh
 ```
 
+## Reporting issuess
+When reporting issues, please make sure that debugging is enabled. To enable debugging either set `MAKEFLAGS="CONFIG_RTW_DEBUG = y"` before compilation or edit Makefile:
+```
+CONFIG_RTW_DEBUG = y
+```
+This will enable verbose debug logging, helpful to developers.
+
 ## Possible issues
 
 ### PCIe Activate State Power Management