SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 23/05/2013, 05:25 PM   #3431
RichieŠ
Big Clucker
 
RichieŠ's Avatar
 
Join Date: Feb 2012
Location: Norway
Posts: 131
Reputation: 30
Default Re: [REL] MySQL Plugin (Google Project)

Is it possible to fix in the debug messages?

Im trying to debug my GM, but the mysql_log is 400kb and contains mostly of this and its useless.
pawn Code:
[19:21:22] [DEBUG] >> cache_get_field_content_float(Connection handle: 1)
[19:21:22] [DEBUG] >> cache_get_field_content_float(Connection handle: 1)
[19:21:22] [DEBUG] >> cache_get_field_content_float(Connection handle: 1)
[19:21:22] [DEBUG] >> cache_get_field_content_float(Connection handle: 1)
[19:21:22] [DEBUG] >> cache_get_field_content_int(Connection handle: 1)
__________________
RichieŠ is offline   Reply With Quote
Old 23/05/2013, 05:28 PM   #3432
Pooh7
Huge Clucker
 
Pooh7's Avatar
 
Join Date: Aug 2010
Location: Serbia
Posts: 347
Reputation: 21
Default Re: [REL] MySQL Plugin (Google Project)

Since R18 you can control what will be written in log.

Quote:
- added function 'mysql_log':
this function replaces 'mysql_debug' (alltough it's still available for
backwards compability). Now you can control which things get logged, i.e. you
can call 'mysql_log(LOG_ERROR | LOG_DEBUG)' to log only errors and debug
informations. The default log setting is 'LOG_ERROR | LOG_WARNING', thus will
log only errors and warnings. Available log types are 'LOG_ERROR',
'LOG_WARNING', 'LOG_DEBUG' and 'LOG_NONE'.
https://code.google.com/p/sa-mp-mysq...ce/detail?r=18
__________________
Pooh7 is offline   Reply With Quote
Old 23/05/2013, 06:19 PM   #3433
RichieŠ
Big Clucker
 
RichieŠ's Avatar
 
Join Date: Feb 2012
Location: Norway
Posts: 131
Reputation: 30
Default Re: [REL] MySQL Plugin (Google Project)

Yeah, i was using LOG_DEBUG and the log file became a huge mess.
I solved my debug situation with print().
But tbh, printing 'cache_get_field_content_int(Connection handle: 1)' to mysql_log is pretty much useless..
__________________
RichieŠ is offline   Reply With Quote
Old 25/05/2013, 03:37 AM   #3434
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 4,013
Reputation: 833
Default Re: [REL] MySQL Plugin (Google Project)

Code:
[20:08:05] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:06] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:06] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:07] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:11] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:15] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:17] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:20] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:23] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:24] [WARNING] CMySQLHandler::StoreResult() - No data to store.
What code/query do I need to have this emit?
__________________

66.85.149.2:7777 - An awesome CnR server consisting of doozy features! Come, we have players!



Looking to invest in unique projects under Irresistible Gaming! Contact if you have one
Lorenc_ is online now   Reply With Quote
Old 25/05/2013, 03:57 AM   #3435
RealCop228
Godfather
 
Join Date: Feb 2010
Posts: 6,927
Reputation: 494
Default Re: [REL] MySQL Plugin (Google Project)

Quote:
Originally Posted by Lorenc_ View Post
Code:
[20:08:05] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:06] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:06] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:07] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:11] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:15] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:17] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:20] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:23] [WARNING] CMySQLHandler::StoreResult() - No data to store.
[20:08:24] [WARNING] CMySQLHandler::StoreResult() - No data to store.
What code/query do I need to have this emit?
Are you asking for an example of when those warnings may appear?

If so, you're looking for things like an UPDATE or an INSERT query. Those don't return anything for mysql_store_result().
__________________
I apologize to anyone who PMed me about BETA testing. We thought we were going to be ready in time but things didn't turn out the way we had planned.

If you're still interested in BETA testing, register on our forums and we will be posting information when the time comes on how to register to be a BETA tester.


RealCop228 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql Error using the Mysql 2.1.1 Plugin yvoms Scripting Help 1 31/05/2012 02:10 PM
MySQL Plugin R5 plugin problem dud Scripting Help 12 05/12/2011 06:28 PM
Strikens Mysql vs BlueG's Mysql plugin PrawkC Scripting Help 4 30/09/2011 10:30 AM
[help][plugin] Can't load mysql plugin mariomako Help Archive 8 16/07/2011 02:37 PM
mysql plugin. loading plugin failed ikkentim Help Archive 2 10/02/2011 02:32 PM


All times are GMT. The time now is 02:10 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.