1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-22 03:40:46 +03:00

3836 Commits

Author SHA1 Message Date
Athanasius
6b94632945
Merge pull request #1245 from EDCD/dependabot/pip/develop/flake8-comprehensions-3.6.0
build(deps-dev): bump flake8-comprehensions from 3.5.0 to 3.6.0
2021-08-13 18:04:39 +01:00
dependabot[bot]
ad49ad531e
build(deps-dev): bump flake8-comprehensions from 3.5.0 to 3.6.0
Bumps [flake8-comprehensions](https://github.com/adamchainz/flake8-comprehensions) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/adamchainz/flake8-comprehensions/releases)
- [Changelog](https://github.com/adamchainz/flake8-comprehensions/blob/main/HISTORY.rst)
- [Commits](https://github.com/adamchainz/flake8-comprehensions/compare/3.5.0...3.6.0)

---
updated-dependencies:
- dependency-name: flake8-comprehensions
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-13 17:02:58 +00:00
Athanasius
bcadc079cc
Merge pull request #1243 from EDCD/enhancement/trace-logging-should-use-trace_if
Convert all/most `logger.trace(...)` to `logger.trace_if(...)`
2021-08-13 16:30:47 +01:00
Athanasius
ef468d4c23
Merge pull request #1241 from norohind/enhancement/1239/inara-trace-under-on_trace
inara.py: put events trace logging under `inara-events` trace_on option
2021-08-13 16:14:10 +01:00
a8a4abfe90
inara.py: trace with logger.trace_if only 2021-08-13 18:06:38 +03:00
Athanasius
1480c2d67a
plugins/edsm: Change trace_if string to plugin.edsm.cmdr-events 2021-08-13 15:29:57 +01:00
Athanasius
82ab72a655
EDMCLogging: Fix import order 2021-08-13 15:22:35 +01:00
Athanasius
7149f7e792
companion: Change trace_if 'capi-query' to 'capi.query' 2021-08-13 15:20:42 +01:00
Athanasius
021d3a25fa
EDMC: Actually set config.trace_on from CL args
Else they won't work, duh!
2021-08-13 15:20:21 +01:00
Athanasius
4433b67c82
EDMarketConnector: Use logger.trace_if(...)
Yes, leaving that 'truncating plain logfile' as plain trace.
2021-08-13 15:14:03 +01:00
Athanasius
2754385281
monitor: Use trace_if('journal.startup', ...) for game load-in 2021-08-13 15:14:03 +01:00
Athanasius
bc9f2cda4b
plugins/edsm: Use logger.trace_if(...)
This also re-introduces commented-out Locations tracking, using
'journal.locations' as it's related to that.
2021-08-13 15:14:03 +01:00
Athanasius
79a2003b53
plugins/eddn: Use logger.trace_if(...) 2021-08-13 15:14:02 +01:00
Athanasius
305f8ca6b0
protocol.py: Use logger.trace_if(...) 2021-08-13 15:14:02 +01:00
Athanasius
c8081f339a
plug.py: Use logger.trace_if(...) 2021-08-13 15:14:02 +01:00
Athanasius
1378f765cc
monitor: Convert to logger.trace_if() 2021-08-13 15:14:02 +01:00
Athanasius
bb1faa67d4
journal_lock: Convert to logger.trace_if(...) 2021-08-13 15:14:02 +01:00
Athanasius
df84b8aa64
companion: Change logger.trace to logger.trace_if
This adds only 'capi-query' to --trace-on possibilities.
2021-08-13 15:14:01 +01:00
Athanasius
647364c1ee
EDMC: Add --trace-on, --trace-all & use monitor.currentdir
In testing `EDMC.py --trace` I ran into issues with NavRoute and
ShipLocker events wanting to open the auxilary files, but it failing.
This turned out to be because that code assumes `monitor.currentdir` is
set and EDMC.py was using a local variable rather than setting and using
it.
2021-08-13 15:14:01 +01:00
Athanasius
1e9541a684
Merge pull request #1244 from A-UNDERSCORE-D/enhancement/trace-if-glob
Use glob matching for trace-on matching
2021-08-13 15:13:34 +01:00
A_D
504e7c7eb5
use glob matching for trace-on matching 2021-08-13 15:50:36 +02:00
Athanasius
f977ad6716
PLUGINS.md: General PyCharm alerts pass
A few bits of example code tweaked to be more correct, but to make
PyCharm truly happy about the file we'd need to expand the examples to
stupid proportions (extra imports, indent changes etc).
2021-08-13 13:50:46 +01:00
Athanasius
6c34ceaba9
PLUGINS.md: s/EDMC/EDMarketConnector/ almost everywhere & reflow
The reflow is on *all* non-code/table text to be within 80 columns,
excepting if a link just makes that impossible.
2021-08-13 13:32:36 +01:00
Athanasius
411bd0edf2
journal/CQC: Minor documentation tweaks for language/grammar 2021-08-13 13:19:46 +01:00
Athanasius
8c9ffec869
Merge pull request #1238 from norohind/enhancement/1030/document-journal-entry-cqc
PLUGINS.md: update for `journal_entry_cqc`
2021-08-13 13:10:15 +01:00
c65ef0a4d6
PLUGINS.md: deduplicate content table for state in journal_entry_cqc 2021-08-13 14:41:35 +03:00
29df3869cd
PLUGINS.md: update first EDMC version with journal_entry_cqc 2021-08-13 14:15:46 +03:00
Athanasius
f5cd901407
Merge pull request #1242 from EDCD/enhancement/trace-logging-args
TRACE: Rationalise trace-related CL args & update docs.
2021-08-13 12:08:37 +01:00
28f7a2b2fe
PLUGINS.md: add ref link for systems to CQC maps mapping 2021-08-13 14:07:50 +03:00
Athanasius
f7d0db8354
TRACE: Add some INFO logging if activating TRACE or TRACE_ALL 2021-08-13 12:03:04 +01:00
Athanasius
80976c8cf5
TRACE: Don't require --trace with other trace options
* `--trace-on ...` no longer requires `--trace` as well.
* Corrected check for `--trace-on *|all`.
* Updated Contributing.md to reflect mandated use of
  `logger.trace_if(...)`, with bare `logger.trace(...)` only for on the
  fly, code not going to be merged, use.
2021-08-13 11:55:10 +01:00
Athanasius
cf399da8d7
TRACE: Tweak --trace-all help message
Yes, it actually uses TRACE_ALL level, that's why I didn't capitlise
'trace' in 'Force trace level logging ...'.
2021-08-13 11:39:19 +01:00
Athanasius
e10e8390a3
TRACE: Move --trace-on arg to between --trace and --trace-all 2021-08-13 11:37:24 +01:00
Athanasius
80da39d393
TRACE: Tweak --trace-on help reference to */all arg 2021-08-13 11:36:38 +01:00
Athanasius
6eff033295
Merge pull request #1240 from A-UNDERSCORE-D/fix/1237/Ensure-we-can-quickly-find-all-the-current-in-code-trace_on-values
Add helper methods around trace-on and override options
2021-08-13 11:33:12 +01:00
A_D
e75eb6dd4b
clarified docs, added * and all support to --trace-on 2021-08-12 20:27:54 +02:00
e82abc8f03
inara.py: move conf_module import to satisfy isort 2021-08-12 19:36:27 +03:00
A_D
05e6838637
removed trace_on imports 2021-08-12 16:49:27 +02:00
A_D
fefa3d351d
replaced if x in trace_on with trace_if 2021-08-12 16:46:55 +02:00
A_D
80fbfd1780
Updated docs containing info about trace-if 2021-08-12 16:46:26 +02:00
A_D
03d90daedc
added support for --trace-all argument to ignore trace-if directives 2021-08-12 16:46:04 +02:00
A_D
41895d591a
added trace-if and TRACE_ALL loglevels 2021-08-12 16:45:18 +02:00
043fd4d826
inara.py: put inara events trace logging under inara-events trace_on option 2021-08-12 16:01:31 +03:00
30048ded88
PLUGINS.md: initial update for journal_entry_cqc 2021-08-11 17:47:06 +03:00
Athanasius
505692052e
edsm: Update should_send() docstring for extra param 2021-08-11 14:05:40 +01:00
Athanasius
5ceac5ded7
Contributing.md: Fix doc of how to use trace_on 2021-08-11 12:47:00 +01:00
Athanasius
4a1b13199d
Merge pull request #1235 from EDCD/fix/1234/monitor-trace_on
monitor.py: Access trace_on via whole-config import
2021-08-11 12:38:00 +01:00
Athanasius
97808f5561
monitor.py: Access trace_on via whole-config import
This is necessary so as to see the same instance of config.trace_on as
is set up by EDMarketConnector.py.
2021-08-11 12:33:22 +01:00
Athanasius
f6c0139440
Merge pull request #1232 from norohind/feature/1030/journal-entry-cqc
Feature/1030/journal entry cqc
2021-08-11 12:27:05 +01:00
0bb06232b8
monitor.py: add default value to entry.get('GameMode') in CQC detection 2021-08-11 14:24:27 +03:00