[gelöst] - dblog - addLog mag nicht. commandref falsch oder ich zu blöd?

Begonnen von Frank_Huber, 05 November 2018, 10:55:03

Vorheriges Thema - Nächstes Thema

Frank_Huber

OK gerne, auf was soll ich das Traceflag setzen?
Hab SQLite am laufen.

DS_Starter

Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Frank_Huber


DS_Starter

Also mit traceFlag SQL und traceLevel 3 kommt so etwas im FHEM Log:


    DBI::db=HASH(0x55b3e98d6070) trace level set to 0x100/3 (DBI @ 0x0/0) in DBI 1.636-ithread (pid 6877)
    DBI::st=HASH(0x55b3e97c96b0) trace level set to 0x100/3 (DBI @ 0x0/0) in DBI 1.636-ithread (pid 6877)
    -> FETCH for DBD::mysql::db (DBI::db=HASH(0x55b3e98d6070)~INNER 'AutoCommit') thr#55b3ddefd010
    <- FETCH= ( 1 ) [1 items] at 93_DbLog.pm line 2088 via  at 93_DbLog.pm line 2088
    -> begin_work for DBD::mysql::db (DBI::db=HASH(0x55b3e923dad0)~0x55b3e98d6070) thr#55b3ddefd010
1   <- _async_check= ( 1 ) [1 items] at mysql.pm line 846 via  at 93_DbLog.pm line 2088
1   <- FETCH= ( 1 ) [1 items] at DBI.pm line 1753 via  at 93_DbLog.pm line 2088
1   <- STORE= ( 1 ) [1 items] at DBI.pm line 1755 via  at 93_DbLog.pm line 2088
    STORE DBI::db=HASH(0x55b3e98d6070) 'BegunWork' => 1
1   <- STORE= ( 1 ) [1 items] at DBI.pm line 1756 via  at 93_DbLog.pm line 2088
    <- begin_work= ( 1 ) [1 items] at 93_DbLog.pm line 2088 via  at 93_DbLog.pm line 2088
    -> execute_array in DBD::_::st for DBD::mysql::st (DBI::st=HASH(0x55b3e98c8568)~0x55b3e97c96b0 HASH(0x55b3e979da00)) thr#55b3ddefd010
    -> dbd_st_FETCH_attrib for 55b3dfc4c3f8, key NUM_OF_PARAMS
    .. FETCH DBI::st=HASH(0x55b3e97c96b0) 'NUM_OF_PARAMS' = 7 (cached)
1   <- FETCH= ( 7 ) [1 items] at DBI.pm line 1936 via  at 93_DbLog.pm line 2094
2   <- _async_check= ( 1 ) [1 items] at mysql.pm line 879 via  at 93_DbLog.pm line 2092
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
-> dbd_st_execute for 55b3dfc5e8c8
>- dbd_st_free_result_sets
<- dbd_st_free_result_sets RC -1
<- dbd_st_free_result_sets
mysql_st_internal_execute MYSQL_VERSION_ID 100121
>parse_params statement INSERT INTO history (TIMESTAMP, DEVICE, TYPE, EVENT, READING, VALUE, UNIT) VALUES (?,?,?,?,?,?,?)
Binding parameters: INSERT INTO history (TIMESTAMP, DEVICE, TYPE, EVENT, READING, VALUE, UNIT) VALUES ('2018-11-14 15:37:03','SMA_Energymeter','SMAEM','Bezug_WirkP_Zaehler_Diff: 0.0049','Bezug_WirkP_Zaehler_Diff','0.0049','')
<- dbd_st_execute returning imp_sth->row_num 1
2   <- execute= ( 1 ) [1 items] at DBI.pm line 2020 via  at 93_DbLog.pm line 2094
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
-> dbd_st_execute for 55b3dfc5e8c8
>- dbd_st_free_result_sets
<- dbd_st_free_result_sets RC -1
<- dbd_st_free_result_sets
mysql_st_internal_execute MYSQL_VERSION_ID 100121
>parse_params statement INSERT INTO history (TIMESTAMP, DEVICE, TYPE, EVENT, READING, VALUE, UNIT) VALUES (?,?,?,?,?,?,?)
Binding parameters: INSERT INTO history (TIMESTAMP, DEVICE, TYPE, EVENT, READING, VALUE, UNIT) VALUES ('2018-11-14 15:37:03','SMA_Energymeter','SMAEM','Bezug_WirkP_Kosten_Diff: 0.0013','Bezug_WirkP_Kosten_Diff','0.0013','')
<- dbd_st_execute returning imp_sth->row_num 1
2   <- execute= ( 1 ) [1 items] at DBI.pm line 2020 via  at 93_DbLog.pm line 2094
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
-> dbd_st_execute for 55b3dfc5e8c8
>- dbd_st_free_result_sets
<- dbd_st_free_result_sets RC -1
<- dbd_st_free_result_sets
mysql_st_internal_execute MYSQL_VERSION_ID 100121
>parse_params statement INSERT INTO history (TIMESTAMP, DEVICE, TYPE, EVENT, READING, VALUE, UNIT) VALUES (?,?,?,?,?,?,?)
Binding parameters: INSERT INTO history (TIMESTAMP, DEVICE, TYPE, EVENT, READING, VALUE, UNIT) VALUES ('2018-11-14 15:37:03','SMA_Energymeter','SMAEM','Einspeisung_WirkP_Zaehler_Diff: 0','Einspeisung_WirkP_Zaehler_Diff','0','')
<- dbd_st_execute returning imp_sth->row_num 1
2   <- execute= ( 1 ) [1 items] at DBI.pm line 2020 via  at 93_DbLog.pm line 2094
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
   Called: dbd_bind_ph
-> dbd_st_execute for 55b3dfc5e8c8
>- dbd_st_free_result_sets
<- dbd_st_free_result_sets RC -1
<- dbd_st_free_result_sets
mysql_st_internal_execute MYSQL_VERSION_ID 100121
>parse_params statement INSERT INTO history (TIMESTAMP, DEVICE, TYPE, EVENT, READING, VALUE, UNIT) VALUES (?,?,?,?,?,?,?)
Binding parameters: INSERT INTO history (TIMESTAMP, DEVICE, TYPE, EVENT, READING, VALUE, UNIT) VALUES ('2018-11-14 15:37:03','SMA_Energymeter','SMAEM','Einspeisung_WirkP_Verguet_Diff: 0.0000','Einspeisung_WirkP_Verguet_Diff','0.0000','')
<- dbd_st_execute returning imp_sth->row_num 1


Das wäre ein fehlerfreier Ablauf. Man braucht etwas Phantasie um die Ausgaben zu deuten, aber hat uns bei dem aktuellen Fall schon geholfen und auf eine Spur geführt.

Wichtig ist mir nur, dass nichts abstürzt oder ähnliche unschöne Dinge. Da du ja auch keine Fehler hast sollte auch nichts spektakuläres zu sehen sein.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Frank_Huber


Frank_Huber

So, mit traceFlag SQL und traceLevel 3 bringt 15MB Log in ca 15 Stunden. also 1 MB pro Stunde.
Ich logge hier nicht viel, nur eine Hand voll Temperatursensoren.

Denke da muss ein Hinweis mit in die Commandref.
gerade auf einem PI istdas Log so nicht mehr aufrufbar.

Ich stell jetzt mal auf "CON" um und erneuere die Log Datei.

DS_Starter

Hallo Frank,

ja danke für den Hinweis. Da kommt auf jeden Fall eine Warnung mit rein dass diese Attr nur im Supportfall und mit Bedacht zu verwenden sind.
Aber ich entnehme deinen Worten dass du ansonsten nichts negatives bemerkt hast.

Grüße,
Heiko
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Frank_Huber

korrekt. ausser dass es eine Ewigkeit dauert das Log zu öffnen läuft alles sauber weiter.

Frank_Huber

Hallo Heiko,

Bis heute nichts negatives aufgefallen. Hab heute wieder auf normal umgestellt.

Danke und Grüße
Frank

Gesendet von meinem Doogee S60 mit Tapatalk


DS_Starter

Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter